-
Notifications
You must be signed in to change notification settings - Fork 178
Closed
Milestone
Description
Description
To properly implement OAuth 2.0 workflows, the HTTP server implemented in scope of #135 - #153, must return a 401 - Unauthorized status in case the client is not authenticated.
As agreed internally, the authorization workflow will be active for HTTP and SSE provided that the server is started with --require-auth (or similar) config flag (to be included in flags + StaticConfig).
In case auth is required, the middleware context function will check for an authorization header.
If the header is not present, a 401 status code is returned forcing the client to start the OAuth flow (see attached sequence diagram).
For the custom kubernetes-authorization header, no checks are performed, the header value is simply propagated to the Kube-API.
ardaguclu
Metadata
Metadata
Assignees
Labels
No labels
