You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
This discussion was converted from issue #1322 on September 30, 2025 09:48.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
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?
Beta Was this translation helpful? Give feedback.
All reactions