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

Approval view: automatically redirect back to page after authentication #1786

Merged
merged 1 commit into from
Dec 20, 2023

Conversation

mvandenburgh
Copy link
Member

Fixes #1701

This is a follow on to #1781. After that PR, accessing the user approval pages while unauthenticated results in a redirect to the login endpoint, which subsequently redirects to github; but, github redirects the user back to the root path / because it doesn't know where the user came from. They allow specifying an optional next query parameter, which github will respect and redirect the user to if it's supplied, so I updated the redirect to do that here.

Copy link
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look good, tested locally without any issue

@mvandenburgh mvandenburgh added patch Increment the patch version when merged release Create a release when this pr is merged labels Dec 20, 2023
@mvandenburgh mvandenburgh merged commit 09744ee into master Dec 20, 2023
10 checks passed
@mvandenburgh mvandenburgh deleted the user-approval-redirect branch December 20, 2023 21:02
@dandibot
Copy link
Member

🚀 PR was released in v0.3.69 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add authentication to /dashboard server side pages (e.g. for user review etc)
3 participants