# How to handle SAML Requests?

**URL:** <https://devforum.okta.com/t/how-to-handle-saml-requests/31713>\
**Category:** SAML\
**Tags:** api, idx\
**Created:** [January 17, 2025, 5:43pm UTC](https://devforum.okta.com/t/how-to-handle-saml-requests/31713 "2025-01-17T17:43:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstaber](https://avatars.discourse-cdn.com/v4/letter/c/85e7bf/32.png) [@cstaber](https://devforum.okta.com/u/cstaber)\
**Post date:** [January 17, 2025, 5:43pm UTC](https://devforum.okta.com/t/how-to-handle-saml-requests/31713/1 "2025-01-17T17:43:19Z")

</div>

To allow for maximum customization, we’re using the okta-auth-js SDK in a page we host to authenticate users from multiple applications we own using IDX/OIDC.

This is working great! I pass the query params into the config of a new OktaAuth client object each time and at the end of the user interaction when I get an interaction\_code, I call signInWithRedirect() which establishes the session and redirects back to the original application the user requested.

Now…  
How do we handle SAML requests from our different applications? Can I use the SDK at all to handle those?  
In SAML urls you don’t have the same query params, just an application name and id of some kind in the URL.

---

<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 16, 2025, 5:43pm UTC](https://devforum.okta.com/t/how-to-handle-saml-requests/31713/2 "2025-02-16T17:43:26Z")

</div>

Closed on February 16, 2025, 5:43pm UTC

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