[java-oidc-common] branch main updated: JCOMOIDC-130 - Add profile option to set header type parameter of client authentication JWTs
Phil Smart
philip.smart at jisc.ac.uk
Wed Jun 4 11:25:36 UTC 2025
This is an automated email from the git hooks/post-receive script.
philsmart pushed a commit to branch main
in repository java-oidc-common.
View the commit online:
http://git.shibboleth.net/view/?p=java-oidc-common.git;a=commit;h=b4dddf6db766addd984ae6b4625670edfdbba9f6
The following commit(s) were added to refs/heads/main by this push:
new b4dddf6 JCOMOIDC-130 - Add profile option to set header type parameter of client authentication JWTs
b4dddf6 is described below
commit b4dddf6db766addd984ae6b4625670edfdbba9f6
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Wed Jun 4 12:25:34 2025 +0100
JCOMOIDC-130 - Add profile option to set header type parameter of client
authentication JWTs
- allow null ClientAuthenticationJWTTypes. This allows the OP to treat
it as optional.
https://shibboleth.atlassian.net/browse/JCOMOIDC-130
---
.../AbstractOAuth2ClientAuthenticableProfileConfiguration.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java
index 6dc3d00..2c67b55 100644
--- a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java
+++ b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/oauth2/config/impl/AbstractOAuth2ClientAuthenticableProfileConfiguration.java
@@ -666,7 +666,7 @@ public abstract class AbstractOAuth2ClientAuthenticableProfileConfiguration
/** {@inheritDoc} */
@Override
- public String getClientAuthenticationJWTType(final ProfileRequestContext profileRequestContext) {
+ @Nullable public String getClientAuthenticationJWTType(final ProfileRequestContext profileRequestContext) {
return clientAuthenticationJWTTypeLookupStrategy.apply(profileRequestContext);
}
@@ -686,12 +686,12 @@ public abstract class AbstractOAuth2ClientAuthenticableProfileConfiguration
/**
* Set the 'typ' header parameter value for a client authentication JWT.
*
- * @param strategy lookup strategy
+ * @param type the 'typ' header value to set
*
* @since 3.3.0
*/
- public void setClientAuthenticationJWTType(@Nonnull @NotEmpty final String type) {
+ public void setClientAuthenticationJWTType(@Nullable final String type) {
clientAuthenticationJWTTypeLookupStrategy =
- FunctionSupport.constant(Constraint.isNotEmpty(type, "Client authentication JWT typ can not be null"));
+ FunctionSupport.constant(type);
}
}
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list