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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.