How can I get a custom attribute through KeycloakPrincipal?

Solution In Progress - Updated -

Issue

  • I have added a custom attribute through Attributes tab on Red Had Single Sign-On, how do I get this value in my application?
  • Where are a user's custom Attribute located in the KeycloakPrincipal?

Environment

  • Red Hat Single Sign On (RH-SSO)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content