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

Fix password reset if SSO is enabled but not matched domain #7617

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

Quehnie
Copy link
Contributor

@Quehnie Quehnie commented Oct 17, 2024

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
License MIT

What's in this PR?

Also check for reset route in the single sign on adapter.

Why?

Currently the password reset does not work.

@alexander-schranz alexander-schranz changed the title Check for reset route Fix password reset if SSO is enabled but not matched domain Oct 31, 2024
@alexander-schranz alexander-schranz added the Bug Error or unexpected behavior of already existing functionality label Oct 31, 2024
@@ -92,7 +92,7 @@ public function onKernelRequest(RequestEvent $event): void

$adapter = $this->singleSignOnAdapterProvider->getAdapterByDomain($domain);
if (!$adapter) {
if ($password) {
if ($password || $isResetPassword) {
Copy link
Member

Choose a reason for hiding this comment

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

Looks correct as we do the same on line 83. @martinlagler can you also check if all make sense here. I needed adopt some tests so not 100% sure if I did miss something.

Copy link
Contributor

Choose a reason for hiding this comment

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

@alexander-schranz Also looks good to me, approved.

@alexander-schranz alexander-schranz merged commit 4e66ed5 into sulu:2.6 Oct 31, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Error or unexpected behavior of already existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants