Skip to content

OAuth 2.0: 401 - Unauthorized headerย #161

@manusa

Description

@manusa

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.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions