# SAML inline Hooks - how to troubleshoot Bad Request?

**URL:** <https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151>\
**Category:** Questions\
**Tags:** saml\
**Created:** [January 25, 2023, 10:48am UTC](https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151 "2023-01-25T10:48:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joelbloch](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@joelbloch](https://devforum.okta.com/u/joelbloch)\
**Post date:** [January 25, 2023, 10:48am UTC](https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151/1 "2023-01-25T10:48:32Z")

</div>

Hello,

I am trying to add a SAML Inline Hook.  
I have a SAML Application configured, and a user assigned to this application.

I create a hook pointing a node express app, responding a very simple ‘add’ command, just to test.  
I use the “Preview” tab of the SAML Inline Hook.  
It generates the request for the user and a the SAML application I provisioned.

When I click on the “Preview Response” button, I simply get a “Bad Request” error.  
When I go into the System Logs, I see there is an error, with no further details.

When I copy the generated request from the Preview section into Postman, and I use the URL I configured in the inline hook, I get my json payload.

My question is: how can I troubleshoot this?

Thanks!

---

<div class="post-metadata">

**Author:** ![abrissardlyvoc](https://avatars.discourse-cdn.com/v4/letter/a/4bbf92/32.png) [@abrissardlyvoc](https://devforum.okta.com/u/abrissardlyvoc)\
**Post date:** [February 14, 2023, 11:50am UTC](https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151/2 "2023-02-14T11:50:23Z")

</div>

Hello,

I have the same problem with Token Inline Hook.

Any help appreciated !

Thanks

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 14, 2023, 8:04pm UTC](https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151/3 "2023-02-14T20:04:33Z")

</div>

If either of you have a support entitlement (paid account required), I would recommend [opening a support case](https://support.okta.com/help/s/article/How-to-Create-a-Support-Case?language=en_US) so someone can review the logs for your org and provide guidance

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 13, 2024, 7:46pm UTC](https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151/4 "2024-02-13T19:46:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 13, 2024, 7:46pm UTC](https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151/5 "2024-02-13T19:46:57Z")

</div>



---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 13, 2024, 7:48pm UTC](https://devforum.okta.com/t/saml-inline-hooks-how-to-troubleshoot-bad-request/23151/6 "2024-02-13T19:48:14Z")

</div>


