<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
0D50Z00008G7UgXSAVOkta Classic EngineAdministrationAnswered2023-09-16T06:29:31.000Z2018-08-03T18:50:53.000Z2019-11-01T19:03:17.000Z

DeblinG.20158 (Customer) asked a question.

What application attributes are available using the expression language when building custom claims for an authorization server
Is there documentation on what attributes are available using the Expression Language when building custom claims for an authorization server? I'm trying to add the application label to a custom claim. "app.id" and "app.status" works but "app.label" and "app.name" don't return anything.

  • Hi Dustin,

     

    Thank you for posting your inquiry to Okta Support Community Portal.

     

      The Okta expression language is based on the Spring Expression Language. Please check the following links for more information, I hope you will find them useful:

     

    https://developer.okta.com/reference/okta_expression_language/#referencing-application-and-organization-properties

     

    https://docs.spring.io/spring/docs/3.0.x/reference/expressions.html

     

      To answer your question, as what attributes in the app object can be used in the expression, unfortunately, we do not have any such list. You will need to try and test yourself which app attributes will work for your custom claim. This is more of a trial/error type of scenario.

     

      If you have any additional questions regarding this topic, please open a Support Case and we would be happy to assist.

     

    Best Regards,

    Daniel
    Expand Post
  • mike.davie1.5312945692819849E12 (Customer First Programs)

    Hello! 

    Thank you for posting your question into the Okta Community Portal! 😀

     

    If you receive a great answer to your question(s), help the community find it by marking it the best answer. Hover over the answer and click "Best Answer." 

     

    Thanks for participating in the Okta Community.  👍

     

    Mike Davie

    Okta Help Center Team
    Expand Post
  • DhwanitD.77889 (Customer)

    "unfortunately, we do not have any such list. You will need to try and test yourself which app attributes will work for your custom claim"

     

    This is kind of silly. At least point to app object or something where we can find corresponding attributes that can be used for custom claims. I'm trying to add application name as a custom claims for logging etc. but it is a nightmare to find the attributes through so called "trial and error".

    Expand Post
This question is closed.
Loading
What application attributes are available using the expression language when building custom claims for an authorization server