SAML Tracer can be a useful debugging tool for viewing SAML messages sent through the browser during single sign-on and single logout and helps with analyzing both SP- and IdP-initiated SAML flows, including viewing and exporting SAML requests and responses in various browsers. It is a great diagnostic tool that may be requested by Liferay Support.
Use these steps to generate a SAML Tracer export in your browser.
Resolution
SAML Tracer Installation and Setup
- Install SAML-tracer or similar browser tool
- To install for the Firefox browser, go to SAML Tracer for Firefox (by SimpleSAMLphp) and install the extension.
- To install for the Chrome browser, go to SAML Tracer for Google Chrome (by SimpleSAMLphp) and install the extension.
- Similar tools, such as SAML DevTools and SAML Chrome Panel, are available for other browsers. As you are effectively installing software to perform a web browser man-in-the-middle attack, please exercise caution and choose tools from reputable sources.
- After successful installation, access SAML Tracer through the browser menu bar by selecting Tools > SAML Tracer (or Extensions > SAML Tracer in Chrome).
- Navigate to the Service Provider’s site with the SAML Tracer window open.
- SAML-tracer automatically begins to log HTTP requests and responses. (You can enable 'Filter Resources' at the top to help simplify the log view.)
- Complete the task you wish to trace (e.g., authenticate to the SP with the selected IdP)
- SAML requests and responses are tagged with SAML, like below.

SAML Tracer Log Export
- To export the SAML-tracer output, click on the Export button in SAML-tracer and choose a cookie-filter profile for the exported file.
- SAML-tracer then exports the log as a JSON file to your browser's download location.
- Sanitize as necessary before providing this .JSON file to Liferay Support.

Additional Information