Skip to content

After the auth, redirect to the page where the auth is initiated #1322

@ERICCYS

Description

@ERICCYS

Scenario: users are using https://example.com

When a user is in https://example.com/page-a with account A , and wants to change to account B.

The user clicks logout, then after using django social auth, I want the user still seeing the https://example.com/page-a.

When the social auth redirecting the user to the login page (lets say https://accounts.google.com/signin/oauth/...), we can see the referrer header and it is https://example.com/page-a. I think can make use of this to redirect user back to the page where the login is initiated instead of just a hard coded settings like LOGIN_REDIRECT_URL

Can you include this feature? Or are there any ways to do this with current django social auth?

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