Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect Issue in Incognito Mode #281

Open
AjinkyaVadane opened this issue Apr 25, 2024 · 1 comment
Open

Redirect Issue in Incognito Mode #281

AjinkyaVadane opened this issue Apr 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AjinkyaVadane
Copy link

Describe the bug

I hope this message finds you well. We are currently facing a challenge with the application1 in relation to the application2 redirection process, specifically when operating in Incognito mode on a browser.

Here’s a brief overview of the issue:

  • Requirement: When a user clicks the "Download Rules" link in the application1 while in Incognito mode, the expectation is to redirect the user directly to the /download-rules page in the application2.

  • Current Behavior: On the first click, the user is incorrectly redirected to the home page of the application2. It is only on the second click that the user is correctly redirected to the /download-rules page.

From my analysis, I have identified that the @okta/okta-react library is utilized for handling security aspects, particularly using the restoreOriginalUri attribute to Security component which is intended to manage redirections to the originally requested URLs. However, this functionality does not seem to be performing as expected under the conditions described.

Also the /downloadr-rules link has been added to the Sign-in redirect URIs inside Okta settings.

We would greatly appreciate any insights or guidance on how to address this issue. Thank you for your attention and support

Reproduction Steps?

While in incognito mode , On the first click, the user is incorrectly redirected to the home page of the application2. It is only on the second click that the user is correctly redirected to the /download-rules page.

SDK Versions

"@okta/okta-react": "^6.7.0"

Additional Information

No response

@AjinkyaVadane AjinkyaVadane added the bug Something isn't working label Apr 25, 2024
@jaredperreault-okta
Copy link
Contributor

@AjinkyaVadane Can you provide some code snippets or ideally a live reproduction?

Is application2 settings the originalUri?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants