Using the SDK in background tasks

Open
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

No file or test is identified; start by tracing SDK authentication initialization and how expire_time and refresh_token_expire_time are calculated when auth data is set. Done would be a clear, supported approach for reusing saved OAuth tokens in webhook background tasks, with documentation or tests describing the behavior.

Written by the indexing model from the issue text.

Description

We are using OAuth 2.0 Authorization Code Flow and save tokens to our DB.

We process webhooks that we receive from ringcentral in background tasks.

Each time a background task is run, we have to initialise the SDK with authentication data. Since expire_time and refresh_token_expire_time are calculated whenever auth data is being set, this will not work for us.

Is there a way we can use the sdk for this use case?

Dominant language
Python
Stars
56
Forks
40
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ringcentral/ringcentral-python

All issues in ringcentral/ringcentral-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.