Problem access to login ceredentials from java application.

Posted on

I have an application developed with JPA, JSF and PRIMEFACES deployed in JBOSS EAP 7, when a user logs in to SSO, the token returns the id Session of the user instead of username and I want to get the username, I tried to get it with the following code #{}

for example

User logged= ferny
username shown = b594c617-6415-45d3-8a90-f05ae3c4ecbd
How can I get the username? I think that SSO is protecting the username logged in , Am I correct? Is there any aditional configuration to allow access to username instead IdSession?

I have applied the "GETTING STARTED GUIDE" configuration of SSO mencioned here :