-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[stable29] fix(auth): Keep redirect URL during 2FA setup and challenge #44977
Conversation
Signed-off-by: Christoph Wurst <[email protected]>
$params = [ | ||
'redirect_url' => $this->request->getParam('redirect_url'), | ||
]; | ||
if (!isset($params['redirect_url']) && isset($this->request->server['REQUEST_URI'])) { |
Check notice
Code scanning / Psalm
NoInterfaceProperties Note
@@ -230,7 +231,7 @@ | |||
* @NoCSRFRequired | |||
*/ | |||
#[FrontpageRoute(verb: 'GET', url: 'login/setupchallenge/{providerId}')] | |||
public function setupProvider(string $providerId) { | |||
public function setupProvider(string $providerId, ?string $redirect_url = null) { |
Check notice
Code scanning / Psalm
MissingReturnType Note
@@ -264,11 +266,12 @@ | |||
* @todo handle the extreme edge case of an invalid provider ID and redirect to the provider selection page | |||
*/ | |||
#[FrontpageRoute(verb: 'POST', url: 'login/setupchallenge/{providerId}')] | |||
public function confirmProviderSetup(string $providerId) { | |||
public function confirmProviderSetup(string $providerId, ?string $redirect_url = null) { |
Check notice
Code scanning / Psalm
MissingReturnType Note
Backport of PR #44745