Skip to content

Issue: okta does not include email_verified claim in ID token #1440

@shiv-tyagi

Description

@shiv-tyagi

Is there an existing issue for this?

  • I have searched the existing issues and found none that matched mine

Describe the issue

As reported in this comment on #1116, the Okta provider does not seem to return the email_verified claim in the ID token by default. This prevents users from logging in, resulting in the error:

Authentication failure: email not verified

This behavior appears to be due to Okta returning thin tokens to avoid bloating them with excessive information.

The suggested fix is to retrieve the email_verified claim from the /userinfo endpoint after successfully obtaining the access token.

I have verified that the /userinfo endpoint does include this claim for the Okta provider.

Image

Keycloak also provides an option to include this claim in the /userinfo endpoint (enabled by default).
Image

Steps to reproduce

Try logging in with okta using the generic broker.

System information and logs

No response

Double check your logs

  • I have redacted any sensitive information from the logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions