I recently configured mi Java app in order to login via SAML 2.0 with AppId and an Identity Provider. So i have the login working fine. The issue is: my java webapp needs to get the email from the user that had login, but I cannot manage to do this from AppId or the identity provider.
How can i get from backend the email of the user that is using the app and had done the login with AppId?
When i used LDAP for the old login, I did that something like this:
userEmail = request.getRemoteUser().trim();
I want to do the same but now using AppId. Using that same method above gives me a code, I think it's the token id or something like that, with the format:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx
Thanks!