Add referrer redirect support to OIDC auth completion (v1.3.0)#15
Merged
Add referrer redirect support to OIDC auth completion (v1.3.0)#15
Conversation
Made-with: Cursor
After OIDC authentication completes, check for a stored referrer redirect. If present, navigate to the stored URL (with optional #angie-prompt= hash) instead of opening the sidebar. This enables prompt-after-redirect flows where a user is sent through auth and then redirected back with a prompt. Made-with: Cursor
OrTab
approved these changes
Feb 26, 2026
Comment on lines
+56
to
+59
| forwardOidcLoginFlowToWindow( { targets, onSuccess: onAuthenticationComplete } ); | ||
| } ); | ||
|
|
||
| forwardOidcLoginFlowToWindow( { targets, onSuccess: openSidebarAfterAuthentication } ); | ||
| forwardOidcLoginFlowToWindow( { targets, onSuccess: onAuthenticationComplete } ); |
Collaborator
Author
There was a problem hiding this comment.
It's not a new flow, I prefer to keep the same behavior
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.
Summary
getReferrerRedirect())#angie-prompt=hash parameter, then clears the redirectContext
This is part of AI-6561 (Add support for prompt when setting redirect referrer). The previous PR (#13) added prompt support to the
setReferrerRedirect/getReferrerRedirectutilities. This PR wires that into the actual auth completion callback so redirects happen after OIDC login.The
ai-remote-integrationpackage inelementor-aihad apost-activation-redirect.tsthat was supposed to handle this, but it relied on aANGIE_USER_ALREADY_AUTHENTICATEDpostMessage that is no longer sent in the OIDC flow — making it dead code. Moving the redirect logic into the SDK'sonAuthenticationCompletecallback is the correct integration point.Test plan
elementor-aiand remove deadpost-activation-redirect.tsMade with Cursor
✨ PR Description
Purpose: Add referrer redirect functionality to OIDC authentication flow to enable post-authentication navigation with optional prompt parameters.
Main changes:
Generated by LinearB AI and added by gitStream.
AI-generated content may contain inaccuracies. Please verify before using.
💡 Tip: You can customize your AI Description using Guidelines Learn how