Badgerati / Pode

Pode is a Cross-Platform PowerShell web framework for creating REST APIs, Web Sites, and TCP/SMTP servers
https://badgerati.github.io/Pode
MIT License
830 stars 92 forks source link

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

Closed Badgerati closed 1 month ago

Badgerati commented 1 month ago

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