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

Fixes the login redirect URL logic for OAuth2 flows when using -SuccessUseOrigin #1359

Merged
merged 2 commits into from
Jul 14, 2024

Conversation

Badgerati
Copy link
Owner

Description of the Change

Adds logic to set redirect.url cookie for OAuth2 flows, and checks for the redirect cookie regardless the value of "SuccessUrl" set on Add-PodeAuth. If one isn't set, it skips redirect altogether.

Related Issue

Resolves #1007

@Badgerati Badgerati added this to the 2.11.0 milestone Jul 13, 2024
@Badgerati Badgerati self-assigned this Jul 13, 2024
@Badgerati Badgerati changed the title Adds logic to set redirect.url cookie for OAuth2 flows Fixes the login redirect URL logic for OAuth2 flows when using -SuccessUseOrigin Jul 14, 2024
@Badgerati Badgerati merged commit a69ccc7 into develop Jul 14, 2024
22 of 24 checks passed
@Badgerati Badgerati deleted the Issue-1007-new branch July 14, 2024 15:56
@Badgerati Badgerati mentioned this pull request Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add-PodeAuth -SuccessUseOrigin doesn't redirect to requested site
1 participant