Add OAuth2/OIDC SSO login to the management UI#1768
Draft
kickster97 wants to merge 11 commits intomainfrom
Draft
Add OAuth2/OIDC SSO login to the management UI#1768kickster97 wants to merge 11 commits intomainfrom
kickster97 wants to merge 11 commits intomainfrom
Conversation
2bb5fa9 to
9aaa417
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
WHAT is this pull request doing?
Adds OAuth2/OIDC SSO login to the management UI using the authorization code flow with PKCE. When an OAuth issuer and client ID are configured, a "Sign in with SSO" button appears on the login page.
Clicking it discovers the IdP's endpoints via OIDC well-known configuration, redirects the user to authenticate, then exchanges the authorization code for an access token on callback. The token is validated against the existing JWT authenticator and stored as the
mcookie. TheAuthHandleris updated to detect JWT-shaped cookies and authenticate them directly. Also adds aoauth_client_idconfig option and refactorsJWKSFetcherto expose OIDC discovery for reuse.Would like input from @bengtmagnus on frontend solution.
Fixes #1690
HOW can this pull request be tested?
start LavinMQ with Oauth & oauth client-id configured and authenticate against your identity provider.
also run specs