Skip to content

Add OAuth2/OIDC SSO login to the management UI#1768

Draft
kickster97 wants to merge 11 commits intomainfrom
mgmt-oauth
Draft

Add OAuth2/OIDC SSO login to the management UI#1768
kickster97 wants to merge 11 commits intomainfrom
mgmt-oauth

Conversation

@kickster97
Copy link
Member

@kickster97 kickster97 commented Mar 1, 2026

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 m cookie. The AuthHandler is updated to detect JWT-shaped cookies and authenticate them directly. Also adds a oauth_client_id config option and refactors JWKSFetcher to 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

@kickster97 kickster97 added this to the 2.8.0 milestone Mar 1, 2026
@kickster97 kickster97 force-pushed the mgmt-oauth branch 2 times, most recently from 2bb5fa9 to 9aaa417 Compare March 1, 2026 12:29
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
@cloudamqp cloudamqp deleted a comment from claude bot Mar 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add OAuth2 authorization flow for management UI login

1 participant