# Help debugging some SAML Responses

**URL:** <https://community.auth0.com/t/help-debugging-some-saml-responses/111138>\
**Category:** Get Help\
**Tags:** protocols, saml\
**Created:** [July 12, 2023, 6:35pm UTC](https://community.auth0.com/t/help-debugging-some-saml-responses/111138 "2023-07-12T18:35:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevor.hirst](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@trevor.hirst](https://community.auth0.com/u/trevor.hirst)\
**Post date:** [July 12, 2023, 6:35pm UTC](https://community.auth0.com/t/help-debugging-some-saml-responses/111138/1 "2023-07-12T18:35:45Z")

</div>

Is it possible to log/capture the request.body.SAMLResponse value? I’ve tried using a rule and the request body appears to be an empty object.

As a side question, is it required for a SAMLResponse to contain both the relayState _and_ the inResponseTo? The documentation appears to indicate that you only need to have one.

(Only interested in SP-initiated answers, we don’t allow IdP-initiated SAML connections)

---

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [July 26, 2023, 10:17pm UTC](https://community.auth0.com/t/help-debugging-some-saml-responses/111138/3 "2023-07-26T22:17:19Z")

</div>

Hi @trevor.hirst

Welcome to the Auth0 Community 🙂

I did a response on another post [here](https://community.auth0.com/t/user-profiles-are-not-reflecting-the-current-saml-field-mappings/105914) about SAML responses which may help you as you can normally capture the SAML response in the browser dev tools.

On your side note, as far as I know if the SAML request is accompanied with a RelayState and the SAML request contains an ID attribute then I would expect the SAML response to also be accompanied with a RelayState and also include an InResponseTo which matches the ID attribute in the request.

Hope that makes sense.  
Warm regards.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [August 9, 2023, 10:18pm UTC](https://community.auth0.com/t/help-debugging-some-saml-responses/111138/4 "2023-08-09T22:18:02Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
