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: fix email verified check for saml #1589

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

FreddyDevelop
Copy link
Contributor

Description

Fix the email_verified check in the Hanko SAML provider.

Implementation

Currently it is only check if the field in the SAML response is not an empty string, but when the SAML provider returns false for the email_verified field the Hanko SAML provider interprets it as true. Now it check if the value is true and when it is not, the email_verified field in Hanko will be set to false.

Tests

E.g. Use the quickstart app and setup SAML in hanko and login with an user which email is not verified and check in the profile that the email is not verified.

@FreddyDevelop FreddyDevelop merged commit 99dc71e into main Aug 26, 2024
9 checks passed
@FreddyDevelop FreddyDevelop deleted the fix/saml-email-verified branch August 26, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants