Skip to content

Commit

Permalink
Configure webui login URLs and details dynamically (#5093)
Browse files Browse the repository at this point in the history
* Clean up some code in login form

* Add UI-side configurable log{in,out} URLs and cookies

* Read and send SSO UI configuration from lakeFS to webui

* Refactor login_config fielf from setup state response in GUI

* [CR] Rename login_cookies -> login_cookie_names

* [CR] Set defaults properly and remove OIDC references from webui

* Fix silly typo

* make gen
  • Loading branch information
arielshaqed authored Feb 6, 2023
1 parent 3fe853d commit 0e4392c
Show file tree
Hide file tree
Showing 12 changed files with 446 additions and 27 deletions.
26 changes: 26 additions & 0 deletions api/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,32 @@ components:
with an external auth service.
type: string
enum: [simplified, external]
login_url:
description: primary URL to use for login.
type: string
login_failed_message:
description: |
message to display to users who fail to login; a full sentence that is rendered
in HTML and may contain a link to a secondary login method
type: string
fallback_login_url:
description: secondary URL to offer users to use for login.
type: string
fallback_login_label:
description: label to place on fallback_login_url.
type: string
login_cookie_names:
description: cookie names used to store JWT
type: array
items:
type: string
logout_url:
description: URL to use for logging out.
type: string
required:
- login_url
- login_cookie_names
- logout_url

SetupState:
type: object
Expand Down
42 changes: 42 additions & 0 deletions clients/java/api/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions clients/java/docs/LoginConfig.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0e4392c

Please sign in to comment.