-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add new `reqGateway` function that passes cookies * Rework auth hook logic to support SSO * Add support for new gateway auth endpoints. This commit also removes the auth redirection logic from the UI, since this is handled by the gateway instead, which will return a redirect if deemed necessary. * fix lint errors * update tests for new login flow * add referrer to validation requests * fix redirection logic * decode URI encoded cookies * add ability to start local UI with https * add ability to specify local host domain * run prettier * throw redirect instead of returning prevents `user` being typed as possibly undefined, which svelte-check didn't like * remove `PUBLIC_LOGIN_PAGE` "NoAuthAdapter" now fulfills the use case where no auth is desired * add example env vars for local HTTPS + domain dev * add new `PUBLIC_AUTH_TYPE` env var * switch auth flow based on new env var * run prettier * change auth type env var to boolean * document new sso env var * refactor nullish assign * fix test env vars * restore feature parity with logout reason * add error handling to cookie parsing * fix role switching with SSO flow * add env var mock to login tests * fix redirection loop by replacing `isDataRequest` conditional * fix redirect loop * fix logout cookie setting race condition --------- Co-authored-by: bduran <[email protected]>
- Loading branch information
Showing
15 changed files
with
266 additions
and
164 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ node_modules | |
/.svelte-kit | ||
test-results | ||
unit-test-results | ||
*.local |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.