Expand my Community achievements bar.

SOLVED

SAML assertion value in logs

Avatar

Level 3

Hi All,

We have a requirement to audit SAML requests in logs (say request.log or some custom log), where we need to show one of the SAML assertion value in the logs for every request.

Can you please let me know if there there any OOTB or custom way to achieve this?

Example, if below is the assertion value,

   <saml:Attribute Name="mail" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:basic">
   <saml:AttributeValue xsi:type="xs:string">test@example.com</saml:AttributeValue>
   </saml:Attribute
>

We need to log test@example.com in every request log.

1 Accepted Solution

Avatar

Correct answer by
Level 8

Why would the request be the responsibilty of AEM?  AEM would be passing the assertion over to the SAML server that should be able to log the request

View solution in original post

5 Replies

Avatar

Employee

Hi Veera,

Did you try configuring a Logging Writer (on debug) for com.adobe.granite.auth.saml ? This might give you some basic details (not entirely).

THanks

Varun

Avatar

Level 3

Bumping this one again, can you guys let me know if there is any way?

Avatar

Level 10

This is not a documented use case - we will continue to check with the internal AEM team.

Avatar

Correct answer by
Level 8

Why would the request be the responsibilty of AEM?  AEM would be passing the assertion over to the SAML server that should be able to log the request