[java-oidc-common] branch main updated: JCOMOIDC-196 - AuthenticationTimeClaimsValidator validates auth_time with millisecond precision

Codeberg noreply at shibboleth.net
Thu Nov 26 11:39:31 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/f235244c389822a808255a0dc05c6951e1a7f983

The following commit(s) were added to refs/heads/main by this push:
     new f235244c JCOMOIDC-196 - AuthenticationTimeClaimsValidator validates auth_time with millisecond precision
f235244c is described below

commit f235244c389822a808255a0dc05c6951e1a7f983
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Thu Nov 26 11:39:23 2026 +0000

    JCOMOIDC-196 - AuthenticationTimeClaimsValidator validates auth_time
    with millisecond precision
    
      - Convert tabs to spaces
    
    https://shibboleth.atlassian.net/browse/JCOMOIDC-196
---
 .../jwt/claims/impl/AuthenticationTimeClaimsValidator.java   | 12 ++++++------
 .../claims/impl/AuthenticationTimeClaimsValidatorTest.java   |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidator.java b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidator.java
index 3e98ff95..5d33d264 100644
--- a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidator.java
+++ b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidator.java
@@ -185,13 +185,13 @@ public class AuthenticationTimeClaimsValidator extends AbstractClaimsValidator {
                     
                     if (authnRequestTime == null) {
                         log.warn("""
-							Maximum authentication age of 0 seconds requested, but no \
-							authentication request time could be found, can not check for a fresh \
-							authentication""");
+                            Maximum authentication age of 0 seconds requested, but no \
+                            authentication request time could be found, can not check for a fresh \
+                            authentication""");
                         throw new JWTValidationException("""
-							Maximum authentication age of 0 seconds requested, but no \
-							authentication request time could be found, can not check for a fresh \
-							authentication""");
+                            Maximum authentication age of 0 seconds requested, but no \
+                            authentication request time could be found, can not check for a fresh \
+                            authentication""");
                     }
                     
                     // Check authTime is after the time which the authentication request was made
diff --git a/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidatorTest.java b/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidatorTest.java
index ca9014ee..6f5cf8f1 100644
--- a/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidatorTest.java
+++ b/oidc-common-crypto-impl/src/test/java/net/shibboleth/oidc/security/jwt/claims/impl/AuthenticationTimeClaimsValidatorTest.java
@@ -182,7 +182,7 @@ public class AuthenticationTimeClaimsValidatorTest extends AbstractClaimsValidat
     @Test
     public void doAcceptForceAuthenticationRequestWithinTheSecond() 
             throws JWTValidationException, ComponentInitializationException {
-    	final Instant now = Instant.now();
+        final Instant now = Instant.now();
         final JWTClaimsSet claimsSet = new JWTClaimsSet.Builder().claim(
                 IDTokenClaims.AUTHENTICATION_TIME.getClaimName(), 
                 now.plusMillis(100).getEpochSecond()).build();

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


More information about the commits mailing list