<div dir="ltr"><div>Yes Brent, I'm using an v3 IdP.</div><div>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.</div><div>I think it's a better option than logging with Tomcat, since in this way I can use a single log file.</div><div>Thanks all for the help!</div><div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-07 17:35 GMT+02:00 Brent Putman <span dir="ltr"><<a href="mailto:putmanb@georgetown.edu" target="_blank">putmanb@georgetown.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><span class="">
    <p><br>
    </p>
    <br>
    <div>On 6/7/16 5:43 AM, SAMUELE RILLI wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>I've configured a Shibboleth SP and a IdP to communicate
          together.</div>
        <div>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.</div>
        <div><br>
        </div>
      </div>
    </blockquote>
    <br></span>
    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.<br>
    <br>
    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.  <br><span class="">
    <br>
    <br>
    <blockquote type="cite">
      <div dir="ltr">
        <div>Is it possible? Do I need to add further logger(s) to the
          logback.xml?</div>
      </div>
    </blockquote>
    <br></span>
    I'll assume you're asking about v3 IdP here.<br>
    <br>
    Log these 2 categories on level DEBUG:<br>
    <br>
    PROTOCOL_MESSAGE<br>
org.opensaml.saml.saml2.binding.security.impl.SAML2HTTPRedirectDeflateSignatureSecurityHandler<br>
    <br>
    <br>
    For the second, you should see a line beginning with "Constructing
    signed content string from URL query string ...".<br>
    <br>
    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.<br>
  </div>

<br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br></div>