Skip to content

Commit

Permalink
fix: duplicate SSO login buttons when SSO provider or SAML login is e…
Browse files Browse the repository at this point in the history
…nforced (#17333)

fix: Hide social login links when SAML is available or SSO provider is enforced
  • Loading branch information
maxbelm authored and pauldambra committed Sep 14, 2023
1 parent d9d9aa6 commit 4709189
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion frontend/src/scenes/authentication/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,9 @@ export function Login(): JSX.Element {
</Link>
</div>
)}
<SocialLoginButtons caption="Or log in with" topDivider />
{!precheckResponse.saml_available && !precheckResponse.sso_enforcement && (
<SocialLoginButtons caption="Or log in with" topDivider />
)}
</div>
</BridgePage>
)
Expand Down

0 comments on commit 4709189

Please sign in to comment.