# Browser Redirect Behavior

**URL:** <https://community.auth0.com/t/browser-redirect-behavior/118358>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [October 11, 2023, 8:59pm UTC](https://community.auth0.com/t/browser-redirect-behavior/118358 "2023-10-11T20:59:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbn](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rbn](https://community.auth0.com/u/rbn)\
**Post date:** [October 11, 2023, 8:59pm UTC](https://community.auth0.com/t/browser-redirect-behavior/118358/1 "2023-10-11T20:59:16Z")

</div>

I have a third party IdP which is going to communicate via SAML with my SP, a ReactJS Single Page App. Auth0 is going to receive the SAML request from the IdP and has been configured to forward it to the SP via OpenID. Here is what is happening in our proof of concept:

User logs in to the IdP  
User clicks on a link in a dashboard to access the SP, which is actually a link to Auth0  
First the browser navigates to this url (which is correct):

[https://My-URL-In-Auth0-AllowCallbackURL/profile#access\_token=XXXXXXXXXX&scope=openid&expires\_in=7200&token\_type=Bearer&id\_token=XXXXXXXXXX](https://My-URL-In-Auth0-AllowCallbackURL/profile#access_token=XXXXXXXXXX&scope=openid&expires_in=7200&token_type=Bearer&id_token=XXXXXXXXXX)

and immediately, the browser then it tries to navigate to this url:

[https://My-URL-In-Auth0-AllowCallbackURL/?code=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXX&state=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX](https://My-URL-In-Auth0-AllowCallbackURL/?code=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXX&state=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX)

and then it lands on:  
[https://My-URL-In-Auth0-AllowCallbackURL/profile](https://My-URL-In-Auth0-AllowCallbackURL/profile)

Since the 3rd url does not have the access token, the SPA displays the login screen.

At this point, if the page is refreshed (F5), the profile page for the requested account is shown as expected.

This behavior occurs only on the first login. It loads the profile page normally on subsequent attempts on Chrome, Edge and Opera browsers. For some reason, Firefox and Brave browsers land on the login page all the time. If the first url (shown above) is placed in the address bar of these browsers, it shows the page correctly.

I have already read the following articles:

> [@How to Implement SSO for Multiple Applications](https://community.auth0.com/t/how-to-implement-sso-for-multiple-applications/87142):
>
> Problem Statement: ​​I want to implement SSO for multiple applications so that users logging into one application automatically log into the other applications. Solution: If the applications use the same database connection and that is the only database connection enabled in each application, then this should be seamless. Users only need to log in once. [This](https://community.auth0.com/t/how-to-set-up-using-the-same-login-credentials-for-multiple-applications/87141)article has the configuration details. If you configure your Auth0 tenant to use a custom domain and your applications share the same …

[Configure Silent Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication) - this article suggests adding prompt=none, which I added to:  
SP Tenant| Authentication | Enterprise | SAML | MyConnection | IdP-Initiated SSO | Query String  
as:  
response\_type=token id\_token&prompt=none

but this did not have any impact.

Is there a setting in Auth0 that can impact this behavior? Or is this something that needs to be captured by the SPA?

Any assistance would be appreciated, thank you very much!

---

<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:** [October 17, 2023, 8:28pm UTC](https://community.auth0.com/t/browser-redirect-behavior/118358/3 "2023-10-17T20:28:25Z")

</div>

Hi @rbn,

It sounds like you are using an [Configure SAML Identity Provider-Initiated Single Sign-On](https://auth0.com/docs/authenticate/protocols/saml/saml-sso-integrations/identity-provider-initiated-single-sign-on) flow. Did you go through that doc to set up your connections and application for IdP initiated SSO?

---

<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:** [October 31, 2023, 8:28pm UTC](https://community.auth0.com/t/browser-redirect-behavior/118358/4 "2023-10-31T20:28:50Z")

</div>

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