SAML assertion value in logs | Community
Skip to main content
Veera_kandregul
Level 2
Nov 7, 2017 11:39 AM UTC
Solved

SAML assertion value in logs

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
user7587541Accepted solution
Employee
Dec 2, 2017 1:21 AM UTC

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

5 replies

user7587541Accepted solution
Employee
Dec 2, 2017 1:21 AM UTC

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

Translate
smacdonald2008
Level 10
Dec 2, 2017 12:36 AM UTC

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

Translate
Veera_kandregul
Level 2
Dec 2, 2017 12:19 AM UTC

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

Translate
Employee
Nov 8, 2017 11:56 PM UTC

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

Translate
Veera_kandregul
Level 2
Nov 8, 2017 9:20 PM UTC

bumping up, any help ?

Translate