# Redirect Uri is not working on IDP inititiated SSO

**URL:** <https://community.auth0.com/t/redirect-uri-is-not-working-on-idp-inititiated-sso/69070>\
**Category:** Get Help\
**Tags:** okta, idp-initiated, react, auth0, login\
**Created:** [September 4, 2021, 2:47am UTC](https://community.auth0.com/t/redirect-uri-is-not-working-on-idp-inititiated-sso/69070 "2021-09-04T02:47:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jearson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jearson/32/12681_2.png) [@jearson](https://community.auth0.com/u/jearson)\
**Post date:** [September 4, 2021, 2:47am UTC](https://community.auth0.com/t/redirect-uri-is-not-working-on-idp-inititiated-sso/69070/1 "2021-09-04T02:47:27Z")

</div>

I am using SPA as my application type and created an enterprise connection which is using the SAML and using Okta as our IDP. I have enabled the Accept Request on the IDP-initiated SSO and use OpenId connect as response protocol. I even added redirect\_uri and response\_type token id\_token on the query which is listed on the allow callback on my application in auth0. Please see attach image.

 ![redirect_uri](https://global.discourse-cdn.com/auth0/original/3X/f/6/f6bd0d9d55ad477d2153e8e71dded119c0b27cda.png)

I was successfully logged in on the okta idp but it returns to the login page of my application(spa) instead of redirecting to localhost:4200/authorize/callback.

 ![login_state](https://global.discourse-cdn.com/auth0/original/3X/5/5/5582bb9297254d78fddc56603727ec8684d4845c.png)

By the way this is only occuring when using the Display Organization Prompt.  
Is there something I need to configure for this to solve the issue?

Thank you.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 8, 2021, 5:38pm UTC](https://community.auth0.com/t/redirect-uri-is-not-working-on-idp-inititiated-sso/69070/3 "2021-09-08T17:38:22Z")

</div>

Hi @jearson,

I replied to your DM, please see my initial response there.

---

<div class="post-metadata">

**Author:** ![jearson](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jearson/32/12681_2.png) [@jearson](https://community.auth0.com/u/jearson)\
**Post date:** [September 9, 2021, 1:56am UTC](https://community.auth0.com/t/redirect-uri-is-not-working-on-idp-inititiated-sso/69070/4 "2021-09-09T01:56:08Z")

</div>

Thanks. Sent you a message.

---

<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:** [December 23, 2021, 4:54pm UTC](https://community.auth0.com/t/redirect-uri-is-not-working-on-idp-inititiated-sso/69070/5 "2021-12-23T16:54:03Z")

</div>

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