-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: redirect users to SSO login page if required (#13116)
## What Closes airbytehq/airbyte-internal-issues#8376 When we get the `error:auth/sso-required` error from the get_or_create_user endpoint, log out the user silently (so the keycloak session is terminated again) and bring them to the SSO login page, with a specific state, that causes an error message to be shown. https://github.com/user-attachments/assets/da23a0da-8d4e-4106-8d0a-08a115850b23 ### Testing I've deployed [Pedro's PR](https://github.com/airbytehq/airbyte-platform-internal/pull/13063/files) to frontend-dev at the moment, so this can be tested against it. There is email_domain block registered for `timroes.de` and a user account exists with `[email protected]` / `asdasdasdasd`. ## Can this PR be safely reverted and rolled back? <!-- * If you know that your be safely rolled back, check YES.* * If that is not the case (e.g. a database migration), check NO. * If unsure, leave it blank.* --> - [ ] YES 💚 - [ ] NO ❌
- Loading branch information
Showing
3 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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