[java-oidc-common] branch main updated: JCOMOIDC-184 - Move OAuth2Client authentication flow from OP to oidc-common

Codeberg noreply at shibboleth.net
Tue Nov 24 10:37:23 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository java-oidc-common.

View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/b88c933d7b897f0893fc27f128e991842a677e1a

The following commit(s) were added to refs/heads/main by this push:
     new b88c933d JCOMOIDC-184 - Move OAuth2Client authentication flow from OP to oidc-common
b88c933d is described below

commit b88c933d7b897f0893fc27f128e991842a677e1a
Author: Henri Mikkonen <henri.mikkonen at iki.fi>
AuthorDate: Tue Nov 24 12:36:16 2026 +0200

    JCOMOIDC-184 - Move OAuth2Client authentication flow from OP to oidc-common
    
    https://shibboleth.atlassian.net/browse/JCOMOIDC-184
    
    Provide the configuration hook implemented in JOIDC-315
    - shibboleth.authn.OAuth2Client.SupportedClientAuthenticationMethodsLookupStrategy (Function<ProfileRequestContext,Set<ClientAuthenticationMethod>>)
---
 .../idp/flows/authn/OAuth2Client/OAuth2Client-beans.xml   | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/oidc-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OAuth2Client/OAuth2Client-beans.xml b/oidc-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OAuth2Client/OAuth2Client-beans.xml
index cf7991b2..0053ba43 100644
--- a/oidc-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OAuth2Client/OAuth2Client-beans.xml
+++ b/oidc-common-conf-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OAuth2Client/OAuth2Client-beans.xml
@@ -107,7 +107,20 @@
 
 
     <bean id="ValidateClientAuthenticationType"
-        class="net.shibboleth.oidc.authn.impl.ValidateClientAuthenticationType" scope="prototype" />
+        class="net.shibboleth.oidc.authn.impl.ValidateClientAuthenticationType" scope="prototype"
+        p:supportedAuthMethodsLookupStrategy="#{getObject('shibboleth.authn.OAuth2Client.SupportedClientAuthenticationMethodsLookupStrategy') ?: getObject('DefaultSupportedClientAuthenticationMethodsLookupStrategy')}" />
+
+    <bean parent="shibboleth.Functions.Constant" id="DefaultSupportedClientAuthenticationMethodsLookupStrategy">
+        <constructor-arg>
+            <util:set>
+                <util:constant static-field="com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod.CLIENT_SECRET_BASIC"/>
+                <util:constant static-field="com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod.CLIENT_SECRET_POST"/>
+                <util:constant static-field="com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod.CLIENT_SECRET_JWT"/>
+                <util:constant static-field="com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod.PRIVATE_KEY_JWT"/>
+                <util:constant static-field="com.nimbusds.oauth2.sdk.auth.ClientAuthenticationMethod.NONE"/>
+            </util:set>
+        </constructor-arg>
+    </bean>
 
     <bean id="DefaultCleanupHook"
         class="net.shibboleth.idp.authn.impl.ValidateCredentials.UsernamePasswordCleanupHook" />

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list