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

Storing token_type in extra_data field when using OAuth 2.0 #912

Merged
merged 1 commit into from
May 5, 2016
Merged

Storing token_type in extra_data field when using OAuth 2.0 #912

merged 1 commit into from
May 5, 2016

Conversation

clintonb
Copy link
Contributor

@clintonb clintonb commented Apr 23, 2016

This value is useful for authentication servers (AS) that may provide multiple types of tokens. Most servers use the Bearer token type; however, we at @edx are transitioning to using JWT. The ability to make the switch without having to change our backend would be ideal. Storing the token type means we can avoid hardcoding the value and let the access token response determine which scheme is used for future requests made using the issued token.

This value is useful for authentication servers that may provide multiple types of tokens.
@clintonb
Copy link
Contributor Author

@omab please review.
FYI @bderusha @nasthagiri @jcdyer

@clintonb
Copy link
Contributor Author

clintonb commented May 5, 2016

@omab any feedback?

@omab omab merged commit 8b00dd1 into omab:master May 5, 2016
@omab
Copy link
Owner

omab commented May 5, 2016

@clintonb thanks for this PR, I've merged it but ran PEP8 on it first.

@clintonb
Copy link
Contributor Author

clintonb commented May 5, 2016

Thanks @omab!

@clintonb clintonb deleted the oauth2-token-type branch May 5, 2016 16:37
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