Skip to content

Update login form for federated logout#1644

Merged
alexandrudanpop merged 5 commits intomainfrom
chore/logout
Nov 20, 2025
Merged

Update login form for federated logout#1644
alexandrudanpop merged 5 commits intomainfrom
chore/logout

Conversation

@alexandrudanpop
Copy link
Copy Markdown
Contributor

Fixes OPS-2947

Need it for federated login

Copilot AI review requested due to automatic review settings November 20, 2025 10:50
@linear
Copy link
Copy Markdown

linear Bot commented Nov 20, 2025

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the sign-in form to support federated logout functionality by integrating feature flags and modifying the logout behavior on component mount.

Key changes:

  • Replaces useEffectOnce with useEffect to handle feature flag dependencies
  • Adds federatedLoginUrl parameter to logout call using the FRONTEGG_URL feature flag
  • Introduces early return when flags are not yet loaded

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/react-ui/src/app/features/authentication/components/sign-in-form.tsx Outdated
}
authenticationSession.logOut({
userInitiated: false,
federatedLoginUrl: flags?.FRONTEGG_URL as string | undefined,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this interfere with cloud templates?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no because in OSS we don't have FRONTEGG_URL setup

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have If OPS_CLOUD_CONNECTION_PAGE_ENABLED is enabled

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

alexandrudanpop and others added 4 commits November 20, 2025 13:13
@sonarqubecloud
Copy link
Copy Markdown

@alexandrudanpop alexandrudanpop merged commit ac34158 into main Nov 20, 2025
22 checks passed
@alexandrudanpop alexandrudanpop deleted the chore/logout branch November 20, 2025 13:16
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.

3 participants