Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting redirect_to cookie on OAuth login #22594

Merged

Commits on Jan 24, 2023

  1. Allow setting redirect_to cookie on OAuth login

    The regular login flow can use a `redirect_to` cookie to ensure the user
    ends their authentication flow on the same page as where they started
    it.
    
    This commit adds the same functionality to the OAuth login URLs, so that
    you can use URLs like these to directly use a specific OAuth provider:
    
    `/user/oauth2/{provider}?redirect_to={post-login path}`
    
    Only the `auth.SignInOAuth()` function needed a change for this, as the
    rest of the login flow is aware of this cookie and uses it properly
    already.
    drsybren committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    1b46291 View commit details
    Browse the repository at this point in the history