-
Notifications
You must be signed in to change notification settings - Fork 191
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
NotImplementedError on authentication while trying to access APIView method #42
Comments
I worked my way out of this by creating a superclass on DjangoOAuth2 that implemented get_user_details method and returning an empty dict.
|
Yes sorry about the lack of documentation about this. |
I know this is not an issue, but for people who end up here, I will leave my final class implementation. It's a simple workaround that fits my case:
Thank you, @PhilipGarnero for your attention and library. |
Where do i put this line of code? |
Hi, I don't know why DjangoOAuth2 not finished for work. This class is not completed!!! |
@ivanff Open source work is provided freely and people offer support on their free time. You are not entitled to anything. Instead of complaining and waiting for others to do your work, do it yourself. |
Hi, can you please elaborate on where exactly this snippet should go, I tried every possible file, but still end up with the same error. |
In case anyone stuck with where you should put this snippet (as I am). If you put this code in file
|
Hi, thank you for this solution, it works just fine. The problem I have is that I can still use expired access_tokens. After calling /convert-token, I acquire an access_token that should expire in 10hrs. But after 10hrs, the token is still usable. I managed to fix this by adding a simple check in the Maybe I'm missing something? Here's the improved
|
Hi, I just setup django-rest-framework-social-oauth2, converted a token succefully(from facebook token to my app token) but when I'm trying to access an @apiview, it keep me showing this error:
I am using this header "Authorization: Bearer MyApp <converted_token>".
Here is my view:
And here is my current settings:
The text was updated successfully, but these errors were encountered: