logging http message in HTTP Redirect binding
SAMUELE RILLI
samuele.rilli at unicam.it
Fri Jun 10 05:26:52 EDT 2016
Yes Brent, I'm using an v3 IdP.
As you suggested, using "PROTOCOL_MESSAGE" and
"org.opensaml.saml.saml2.binding.security" at DEBUG level allowed me to log
SAML message and the detached signature, so now I can log the signature
both in POST and Redirect binding, it should be sufficient for me.
I think it's a better option than logging with Tomcat, since in this way I
can use a single log file.
Thanks all for the help!
2016-06-07 17:35 GMT+02:00 Brent Putman <putmanb at georgetown.edu>:
>
>
> On 6/7/16 5:43 AM, SAMUELE RILLI wrote:
>
>
> I've configured a Shibboleth SP and a IdP to communicate together.
> When the SP sends an authentication request to the IdP through the HTTP
> Redirect binding, I need the IdP to log the whole http message which
> includes both the SAML authnRequest and the SP detached signature in the
> Signature parameter.
>
>
> You can't log them in one single log message. As others have pointed out,
> you can do that with servlet container logging of the request itself.
>
> However, you can log the decoded SAML protocol message and separately log
> the query string that was received. The latter is via the handler that
> evals the Redirect binding signature.
>
>
> Is it possible? Do I need to add further logger(s) to the logback.xml?
>
>
> I'll assume you're asking about v3 IdP here.
>
> Log these 2 categories on level DEBUG:
>
> PROTOCOL_MESSAGE
>
> org.opensaml.saml.saml2.binding.security.impl.SAML2HTTPRedirectDeflateSignatureSecurityHandler
>
>
> For the second, you should see a line beginning with "Constructing signed
> content string from URL query string ...".
>
> For that, you could also be less specific and get more logging, by
> configuring to log org.opensaml.saml.saml2.binding.security.impl or
> org.opensaml.saml.saml2.binding.security, etc. As you like.
>
> --
> To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20160610/d4d8a133/attachment.html>
More information about the users
mailing list