Django-oauth-toolkit: If you are using implicit, authorization_codeor all-in-one grant_type, you must define redirect_uris field in your Application model

Created on 7 Jan 2019  路  2Comments  路  Source: jazzband/django-oauth-toolkit

Hi!
I have got an error because of trying to access the AuthorizationView with credentials of application with grant type 'client-credentials'.
What is the right way to allow only "authorization-code" grant type in this view?

Most helpful comment

Hi!
I have got an error because of trying to access the AuthorizationView with credentials of application with grant type 'client-credentials'.
What is the right way to allow only "authorization-code" grant type in this view?

Did you define redirect_uris in Application of redirect_uris field?

All 2 comments

Hi!
I have got an error because of trying to access the AuthorizationView with credentials of application with grant type 'client-credentials'.
What is the right way to allow only "authorization-code" grant type in this view?

Did you define redirect_uris in Application of redirect_uris field?

@huazaisix : Can you give an example? Particularly how to do it for google OAuth2

Was this page helpful?
0 / 5 - 0 ratings