# Auth0 ignores redirect\_uri param when used as SAML SP

**URL:** <https://community.auth0.com/t/auth0-ignores-redirect-uri-param-when-used-as-saml-sp/108533>\
**Category:** Get Help\
**Tags:** application, sso\
**Created:** [June 5, 2023, 10:40am UTC](https://community.auth0.com/t/auth0-ignores-redirect-uri-param-when-used-as-saml-sp/108533 "2023-06-05T10:40:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexarsh](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@alexarsh](https://community.auth0.com/u/alexarsh)\
**Post date:** [June 5, 2023, 10:40am UTC](https://community.auth0.com/t/auth0-ignores-redirect-uri-param-when-used-as-saml-sp/108533/1 "2023-06-05T10:40:04Z")

</div>

Hi,

I use Auth0 as a SAML SP when I have some external iDP.  
I have a React SPA where I use @auth0/auth0-react package.  
My Auth0Provider inside the app looks like the following:

```auto
  <Auth0Provider
    domain="..."
    clientId="..."
    authorizationParams={{
      redirect_uri: window.location.origin,
      ...
    }}
  >

```

I can successfully login but my problem is that Auth0 ignores my redirect\_uri, for some reason.  
I see it’s passed correctly on /authorize request, but after successful login, auth0 take the first url from Allowed Callback URLs and redirect there instead of using redirect\_uri.

Am I missing something and it’s some kind of configuration problem?  
Or redirect\_uri should be passed to iDP and it’s not happening for some reason?

---

<div class="post-metadata">

**Author:** ![barry](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/barry/32/62701_2.png) [@barry](https://community.auth0.com/u/barry)\
**Post date:** [December 7, 2024, 2:55am UTC](https://community.auth0.com/t/auth0-ignores-redirect-uri-param-when-used-as-saml-sp/108533/2 "2024-12-07T02:55:41Z")

</div>

Did you find any solution to this? I’m have the exact same problem. redirect\_uri is ignored.

---

<div class="post-metadata">

**Author:** ![vlad.murarasu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vlad.murarasu/32/72793_2.png) [@vlad.murarasu](https://community.auth0.com/u/vlad.murarasu)\
**Post date:** [March 18, 2025, 2:16pm UTC](https://community.auth0.com/t/auth0-ignores-redirect-uri-param-when-used-as-saml-sp/108533/4 "2025-03-18T14:16:55Z")

</div>

Hi @alexarsh,

Welcome to the Auth0 Community.

I have found this community post which describes the same issue. They’ve managed to find a fix so you can try implementing it too.

> [@Okta as IdP Auth0 as SP redirect uri ignored](https://community.auth0.com/t/okta-as-idp-auth0-as-sp-redirect-uri-ignored/158426):
>
> I have set up my SAML configuration for localhost on my DEV tenant using the guide here: [Configure Okta as SAML Identity Provider](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/configure-auth0-saml-service-provider/configure-okta-as-saml-identity-provider) When I test the connection from the Auth0 “Try” button it works successfully. However, I want to test the SAML flow when it’s initiated in the Okta dashboard. In order to do this, under Idp Initiated Requests I select “Accept Requests” and select my client application as the default application. Then I added a redirect\_uri in the “Query String” input field. This red…

If you have any other question feel free to let us know.

Have a good one,  
Vlad

---

<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:** [April 1, 2025, 2:17pm UTC](https://community.auth0.com/t/auth0-ignores-redirect-uri-param-when-used-as-saml-sp/108533/6 "2025-04-01T14:17:07Z")

</div>

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