<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z00007uJyL8CAKOkta Identity EngineAuthenticationAnswered2024-03-08T07:12:18.000Z2022-08-05T06:21:50.000Z2022-08-15T12:36:51.000Z

servicea.28287 (Customer) asked a question.

Claims Naming

Is it against Okta rules to set claim both an access token and an identity token with the same name for default attributes? When I do this, I keep getting the error that the claim name should be unique. However, when I do this for custom attributes, it accepts both, allowing me to use the same name in both the access token and the id token.


  • Paul S. (Okta, Inc.)

    Hello @servicea.28287 (Customer)​ Thank you for reacting out to our Community!

     

    Please review our documentation below on this matter:

    https://developer.okta.com/docs/guides/validate-id-tokens/main/#id-tokens-vs-access-tokens

    My advice would be to leverage the Okta Developer forums for this type of questions and take advantage of their expertise.

    https://devforum.okta.com/

     

    The Okta Community Catalysts Program is now live. Collect online badges when you participate in the Okta Help Center Questions community. Learn more here.

    Expand Post
  • servicea.28287 (Customer)

    Hi @Paul S. (Okta, Inc.)​ . I read the documentation, it didn't help resolve my query.  I'm getting this error when I use same name for claims(both access & ID) for email attribute only, which is a default attribute. Although I have also used the default attributes firstName and lastName in claims and didn't get this error. So, while creating claims, is there a naming convention that should be followed?

    error

    Expand Post
This question is closed.
Loading
Claims Naming
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply