-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Check oidc email_verified claim #12140
Conversation
Can we add test coverage? |
@zmb3 This seems to work fine on Google and Okta after manual testing. |
Would we ever consider creating a way to disable this via the config? |
We could, is this causing problems for anyone? Generally I made the assumption that disabling this is very bad security practice since the field set to false means that the IdP is telling us we can't really trust that the email is controlled by the user in question. |
I have a meeting with the customer this afternoon. I'll try to understand why the email_verified claim can't be set to true. If they can't set email_verified claim to true, I'll create a Github issue to add a "switch" and link it here. |
Currently, we do not check the email_verified claim when validating OIDC callbacks.
This is not always set, but if it's set to false, the OIDC provider does not guarantee the authenticity of the email address and Teleport should reject it.
This will only be manually tested.