Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DAILY-57216] Add the OAuth2 refresh token mechanism #46

Merged
merged 7 commits into from Sep 29, 2017
Merged

Conversation

Swop
Copy link
Contributor

@Swop Swop commented Sep 20, 2017

Handle the refresh token mechanism in the SDK.
The token will be refreshed before any API call if the token is expired.
If a session is not specifically injected during the SDK initialization, the code will try to get the refresh token from the possible available refresh_token neon cookie.

Jira: https://jira.dailymotion.com/browse/DAILY-57216

I'n not quite aware yet of all the usage of the SDK elsewhere.

@Amzani @nyvath Could you specifically have a look if this patch could lead to regressions depending on how (and where) the SDK is used on our stack (and also for external public SDK users)?

@Swop Swop requested review from nyvath and Amzani September 20, 2017 09:35
…eturn a proper session in the callback if the user call this function before the SDK initial instanciation end
…o use the internal cookie if present. Fallback to site session loading if no refresh token is available
@Amzani Amzani merged commit 684d10e into master Sep 29, 2017
@Amzani Amzani deleted the DAILY-57216 branch September 29, 2017 08:52
@Amzani
Copy link
Contributor

Amzani commented Sep 29, 2017

LGTM

@Swop Swop restored the DAILY-57216 branch September 29, 2017 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants