Keycloak retrieve custom attributes to KeycloakPrincipal
In my REST service I can obtain the principal information after authentication using KeycloakPrincipal kcPrincipal = (KeycloakPrincipal) servletRequest.getUserPrincipal(); statement. Keycloak principal doesn't contain all the information I need about the authenticated user. Is it possible to customize my own principal type? On the keycloak-server-end, I've developed a user federation provider. I saw that UserModel makes possible to add a set of custom attributes to my user. Is it possible to insert my custom principal in that code? Is it possible to retrieve this attributes from keycloak princ
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.