Skip to content

REDIRECT_URL configuration not working after (big) upgrade #1039

@hovi

Description

@hovi

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 the redirect_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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions