[java-oidc-common] branch dev/JCOMOIDC-139 updated: Add default methods for compatiblity
Codeberg
noreply at shibboleth.net
Tue Feb 17 20:55:25 UTC 2026
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch dev/JCOMOIDC-139
in repository java-oidc-common.
View the commit online:
https://codeberg.org/Shibboleth/java-oidc-common/commit/0312f8a88b5396f99a70ce4955ff43df5c690539
The following commit(s) were added to refs/heads/dev/JCOMOIDC-139 by this push:
new 0312f8a8 Add default methods for compatiblity
0312f8a8 is described below
commit 0312f8a88b5396f99a70ce4955ff43df5c690539
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Tue Feb 17 20:55:17 2026 +0000
Add default methods for compatiblity
---
.../profile/config/OIDCSSORelyingPartyConfiguration.java | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/OIDCSSORelyingPartyConfiguration.java b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/OIDCSSORelyingPartyConfiguration.java
index b265986d..3dc26c45 100644
--- a/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/OIDCSSORelyingPartyConfiguration.java
+++ b/oidc-common-profile-api/src/main/java/net/shibboleth/oidc/profile/config/OIDCSSORelyingPartyConfiguration.java
@@ -50,8 +50,10 @@ public interface OIDCSSORelyingPartyConfiguration extends OAuth2TokenEncryptionP
* @since 3.4.0
*/
@ConfigurationSetting(name="attributeExtractionStrategy")
- @Nullable Function<ProfileRequestContext,Collection<IdPAttribute>> getAttributeExtractionStrategy(
- @Nullable final ProfileRequestContext profileRequestContext);
+ @Nullable default Function<ProfileRequestContext,Collection<IdPAttribute>> getAttributeExtractionStrategy(
+ @Nullable final ProfileRequestContext profileRequestContext){
+ return null;
+ }
/**
* Get a principal name to feed into attribute resolution if {@link #isResolveAttributes(ProfileRequestContext)}
@@ -64,7 +66,10 @@ public interface OIDCSSORelyingPartyConfiguration extends OAuth2TokenEncryptionP
* @since 3.4.0
*/
@ConfigurationSetting(name="attributeResolutionPrincipal")
- @Nullable String getAttributeResolutionPrincipal(@Nullable final ProfileRequestContext profileRequestContext);
+ @Nullable
+ default String getAttributeResolutionPrincipal(@Nullable final ProfileRequestContext profileRequestContext) {
+ return null;
+ }
/**
*
@@ -81,6 +86,9 @@ public interface OIDCSSORelyingPartyConfiguration extends OAuth2TokenEncryptionP
* @since 3.4.0
*/
@ConfigurationSetting(name="shouldValidateAcrValue")
- boolean shouldValidateAcrValue(@Nullable final ProfileRequestContext profileRequestContext);
+ default boolean shouldValidateAcrValue(@Nullable final ProfileRequestContext profileRequestContext) {
+ // Evaluate the claims as a default
+ return true;
+ }
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list