Replace OpenID 2.0 with OAuth 2.0/OIDC login - #2
Closed
mraible wants to merge 1 commit into
Closed
Conversation
Replace the obsolete OpenID 2.0 authentication (removed in Spring Security 6) with modern OAuth 2.0/OIDC login using spring-security-oauth2-client. OIDC providers are configured via roller-custom.properties with issuer discovery. The existing openIdUrl column is reused to store OIDC subjects (formatted as issuer#sub), avoiding schema changes. New OIDC users are redirected to registration with claims pre-populated; returning users go straight to the menu. AuthMethod enum values updated from OPENID/DB_OPENID to OIDC/DB_OIDC.
mraible
force-pushed
the
feature/oidc-login
branch
from
August 11, 2026 15:45
f9ce97f to
34c211f
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.
Replaces the obsolete OpenID 2.0 authentication (removed in Spring Security 6) with modern OAuth 2.0/OIDC login using
spring-security-oauth2-client. This is Phase 3 of the Jakarta EE 10 migration (ROL-2183).spring-security-oauth2-clientandspring-security-oauth2-josedependenciesRollerClientRegistrationRepositoryreads OIDC provider config (client-id, client-secret, issuer-uri) fromroller-custom.propertieswith automatic OIDC discoveryRollerOidcUserServicebridges OIDC-authenticated users to Roller's user store via the existingopenIdUrlcolumn (storesissuer#sub)RollerOAuth2SuccessHandlerroutes existing users to the menu and new users to registration with OIDC claims pre-populatedAuthMethodenum:OPENID/DB_OPENID→OIDC/DB_OIDCRollerSessionto handleOAuth2AuthenticationTokenprincipal typeStacked on apache#154 (Jakarta EE 10 migration).