1 Reply Latest reply on Mar 14, 2012 5:50 AM by buzzjuh

    Decrypt assertion from SamlPrincipal

      Following the articles at https://community.jboss.org/wiki/HowToAddSAMLAndOpenIDAuthenticationToYourSeamApplication and https://community.jboss.org/wiki/ExternalAuthenticationExampleUsingOpenSSO I managed to get my Seam application working with OpenAm(OpenSSO). After I login I get redirected and the method: public Boolean internalAuthenticate(Principal principal, List<String> roles) is called. At this point I need to do something with the username from the login action. Is it possible to retrieve this data from the Assertion in a decrypted form? And if so how do I accomplish this?

        • 1. Re: Decrypt assertion from SamlPrincipal

          Anyone got an idea? It must be possible because in the HowToAddSAMLAndOpenIDAuthenticationToYourSeamApplication  article the following is mentioned: "You would typically check whether the external identity (OpenID identifier or SAML nameID) is linked to an internal user account in your database."