Add capability for gate app to handle external IdP redirects#252
Merged
ThaminduDilshan merged 1 commit intoasgardeo:mainfrom Nov 22, 2025
Merged
Add capability for gate app to handle external IdP redirects#252ThaminduDilshan merged 1 commit intoasgardeo:mainfrom
ThaminduDilshan merged 1 commit intoasgardeo:mainfrom
Conversation
019b9ff to
b51d3d4
Compare
Contributor
|
Let's add a changeset for the release as well |
b51d3d4 to
b65f886
Compare
b65f886 to
c0dc8e8
Compare
🦋 Changeset detectedThe changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. |
DonOmalVindula
approved these changes
Nov 22, 2025
ThaminduDilshan
approved these changes
Nov 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces significant improvements to the authentication flow, especially for handling OAuth redirects and session management in the Asgardeo React SDK. The changes enhance support for the Asgardeo V2 platform, streamline the embedded sign-in flow, and improve robustness around session and redirect handling. The most important changes are grouped below.
Embedded Sign-In Flow and OAuth Redirect Handling
SignIncomponent, including storing and clearing relevant data insessionStorage, and updating the browser URL to remove sensitive parameters after successful authentication. [1] [2] [3]code,state,nonce) and ensure the correct flowId is used, with a ref to prevent duplicate processing.Session and Platform Management
sessionStorageduring provider initialization, and using these values as fallbacks in the sign-in flow. [1] [2]sessionDataKeyandbaseUrlfrom either URL or sessionStorage, making the flow more resilient to navigation and redirects.Platform-Specific Authentication Logic
Error Handling and Type Safety
Type and Import Updates
EmbeddedSignInFlowTypeV2andEmbeddedSignInFlowResponseV2. [1] [2]These changes collectively make the authentication flow more robust, secure, and compatible with the latest Asgardeo platform features.