Skip to content

Feat/cross domain auth#435

Merged
manikanta9176 merged 3 commits intomainfrom
feat/cross-domain-auth
Sep 5, 2025
Merged

Feat/cross domain auth#435
manikanta9176 merged 3 commits intomainfrom
feat/cross-domain-auth

Conversation

@manikanta9176
Copy link
Copy Markdown
Collaborator

No description provided.

…point

- Refactor signInAction to return the redirect URL instead of performing a server-side redirect.
- Enable SignInForm to handle client-side navigation after successful sign-in, allowing for conditional redirects.
- Add a new POST /logout endpoint to Payload to securely clear the authentication cookie.
- Ensure proper session termination and redirect to the sign-in page upon logout.
- Include minor CSS class reordering for consistency in SignInForm.tsx.
- Introduces a CrossDomainAuthProvider and useCrossDomainAuth hook to manage authentication state across multiple domains.
- Enables seamless logout and login synchronization by using hidden iframes to communicate with configured external domains.
- Updates the logoutAction to return a success status, allowing client-side orchestration of cross-domain logout.
- Modifies the Payload /logout endpoint to be iframe-friendly, returning a 200 OK status and X-Frame-Options: ALLOWALL.
- Adds NEXT_PUBLIC_DFLOW_DOMAIN environment variable for configuration and includes minor style adjustments and sign-in form action state resets.
@manikanta9176 manikanta9176 self-assigned this Sep 5, 2025
@manikanta9176 manikanta9176 merged commit aba1a13 into main Sep 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant