Skip to content

BaseOAuth2: Store access token in response if it does not exist#816

Merged
omab merged 1 commit intoomab:masterfrom
kchang:patch-1
Mar 28, 2016
Merged

BaseOAuth2: Store access token in response if it does not exist#816
omab merged 1 commit intoomab:masterfrom
kchang:patch-1

Conversation

@kchang
Copy link
Copy Markdown
Contributor

@kchang kchang commented Jan 7, 2016

BaseOAuth2.do_auth wasn't storing the access token to be passed to the pipeline. As a result, backends inheriting from BaseOAuth2 wasn't storing the token because OAuthAuth.extra_data never had the token information passed to it.

Reference:
BaseOAuth1.do_auth
https://github.com/omab/python-social-auth/blob/master/social/backends/oauth.py#L185-L193

OAuthAuth.extra_data
https://github.com/omab/python-social-auth/blob/master/social/backends/oauth.py#L39-L46

Related:
#416

`BaseOAuth2.do_auth` wasn't storing the access token to be passed to the pipeline. As a result, backends inheriting from `BaseOAuth2` wasn't storing the token because `OAuthAuth.extra_data` never had the token information passed to it.
@omab omab merged commit 153f3aa into omab:master Mar 28, 2016
@omab
Copy link
Copy Markdown
Owner

omab commented Mar 28, 2016

Thanks!

@kchang kchang deleted the patch-1 branch April 27, 2016 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants