Replies: 4 comments
-
@hovi Were you able to resolve this issue I am facing the same issue. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately no. I ended up modifying my login settings to match the default settings. |
Beta Was this translation helpful? Give feedback.
-
Shouldn't it be |
Beta Was this translation helpful? Give feedback.
-
If it is of any help to anyone, my issue got solved by setting the REDIRECT URI to "postmessage" as I was using Authorization Code Flow for Google Oauth2. Otherwise, even if I had the identical URI in Google Cloud Console and in Django Settings, every time I got a redirect_uri_mismatch error. It is a shame that this is not documented properly anywhere. |
Beta Was this translation helpful? Give feedback.
-
I have been using this library for years. Now I was finally able to upgrade the project from python 2 to python 3 and from django 1.x to 3.x (yes, shame on me for doing it this late!).
I have configured apple and google-oauth2, which have been working in the old setup till now. The configuration includes:
SOCIAL_AUTH_GOOGLE_OAUTH2_REDIRECT_URL
and
SOCIAL_AUTH_APPLE_ID_OAUTH2_REDIRECT_URL
Expected behaviour
When I click on login buttons, oauth request sets correctly
redirect_uri
parameter as per config.Actual behaviour
Request sets different "default"
redirect_uri
no matter what and I get error because theredirect_uri
is incorrect (not authorized) for both backends.I got my google oauth working by adding the "default"
redirect_uri
to my authorised redirect URIs in the google console, so my configuration is otherwise fine. I'd like to keep my "old" custom redirect uris if possible though.It's really cool by the way that the library otherwise works even after upgrading a few major versions years later.
I don't see those REDIRECT_URL strings anywhere in the documentation. Have they been removed? If so, what is the alternative? Please advice :)
Beta Was this translation helpful? Give feedback.
All reactions