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

Setup/usage with Social Auth #21

Open
daniel-skale opened this issue Oct 6, 2021 · 1 comment
Open

Setup/usage with Social Auth #21

daniel-skale opened this issue Oct 6, 2021 · 1 comment
Labels
question Further information is requested

Comments

@daniel-skale
Copy link

Hi, was wondering if there are any additional setup required when authenticating a Google OAuth token? The header format is of the form Authorization: Token some_hash, but for some reason the response form calling an API afterwards returns {detail: Invalid token. }. Can this be caused if a default expiry and additional settings are not set? When not using 3rd party Oauth, the client logs in and is able to perform API calls with the token created by durin.

@eshaan7
Copy link
Owner

eshaan7 commented Oct 6, 2021

I haven't tried using durin with OAuth but I do believe it would require additional setup steps.

First of all, a google (or some other) OAuth token won't work with durin's TokenAuthentication backend (authentication provider) because durin tokens are stored in the AuthToken model in the DB.

You may want to checkout a 3rd party library like django-oauth-toolkit.

@eshaan7 eshaan7 added the question Further information is requested label Feb 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants