Fetch Logged In Username in a webapp secured with Keycloak

前端 未结 5 626
轻奢々
轻奢々 2020-12-14 18:11

I have secured an enterprise application with Keycloak using standard wildfly based Keycloak adapters. Issue that I am facing is that the rest web services when invoked, nee

5条回答
  •  我在风中等你
    2020-12-14 18:44

    Need to add standalone.xml next line:

    preferred_username
    

    Example:

    
        
            realm-name
            resource-name
            true
            https://keycloak-hostname/auth
            EXTERNAL
            preferred_username
        
    
    

提交回复
热议问题