- I have a hosted non-gallery application on Microsoft Azure.
- I have completed the SAML configuration in Azure AD (using SAML 2.0 protocol)
- My application runs in Java (runtime 7)
- I am getting the userPrincipalName as encoded Value.
How do I decode that encoded value and retrieve the actual value?
I have tested the response using SAML Parser, and it is showing the correct value in the NameID
tag.
I am expecting the value as it is showing in SAML response NameID
tag, but I am getting an encoded value.
I have tried the following code, but the output is not as expected. I am expecting a string with email format.