Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

User creation - SAML response stored in crx

Avatar

Level 4

Hi,

We are trying to leverage SAML Authentication Handler for SSO in our application. In Adobe Granite SAML 2.0 Authentication Handler configuration Autocreate CRX Users is checked. After successful authentication, user gets created in crx along with that we can find a property samlResponse at user node which contains encrypted SAML response.

Is there anyway we can avoid storing SAML response in crx as we are not authorized to store user personal information like email, phone etc...?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

I believe this is working as designed. In case you would like to make it more secure, you can turn on the encryption and have the encrypted response saved in AEM so that it can only be decoded using the private key.

View solution in original post

5 Replies

Avatar

Employee Advisor

You can use the "Synchronized Attributes" in the SAML handler to configure the attributes that should be synced/stored with AEM.Screen Shot 2019-09-24 at 8.34.58 AM.png

Avatar

Level 4

Hi JaideepBrar,

Synchronized Attributes field is left blank, after successful login user gets created in crx but i can still see the property samlResponse.

1837089_pastedImage_2.png

1837090_pastedImage_3.png

Avatar

Correct answer by
Employee Advisor

I believe this is working as designed. In case you would like to make it more secure, you can turn on the encryption and have the encrypted response saved in AEM so that it can only be decoded using the private key.

Avatar

Level 4

Hi Jaideep,

Any references on custom AuthenticationInfoPostProcessor where i can get SAML response from request, read it to get details in AEM 6.4 instead of decrypting samlResponse property from user node after successful login?

Referred this blog http://apoorva-ganapathy.blogspot.com/2016/08/aem-processing-saml-response-using.html but both httpRequest.getPathInfo() and httpRequest.getParameter("saml_login") are null in custom AuthenticationInfoPostProcessor.

Thanks & Regards,

Srikanth Pogula.

https://forums.adobe.com/thread/2652904