This repository has been archived by the owner on Jan 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support single-host mode of Che server. (#11)
Support single-host mode of Che server. * A custom URI prefix for the auth redirect can be configured, called public_base_path. This is so that we can construct valid externally reachable URLs even behind a path-rewriting ingress * Change the order in which the auth token is located. First we try to find it in the query params, then in the Authorization header as a bearer token and only then in the cookie. This enables us to "refresh" the token from the client side easily. * On any error to validate the token (apart from the inability to parse the token in the first place) we know send the auth redirect instead of an error. This should help the client side refresh the token on timeouts, etc. * Do not set the cookie in the response if cookies are not enabled in the config. * Respond with 403 - Forbidden if cookies are not enabled. In this case the client needs to directly authenticate with the backend server. Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
- Loading branch information
Showing
5 changed files
with
79 additions
and
35 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
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