[java-oidc-common] branch main updated: Fix max_age not set correctly when not using a request object

Phil Smart philip.smart at jisc.ac.uk
Fri Apr 21 08:36:53 UTC 2023


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=5faceb45104e7992631d27b7e98eeb8e28c2f388

The following commit(s) were added to refs/heads/main by this push:
     new 5faceb4  Fix max_age not set correctly when not using a request object
5faceb4 is described below

commit 5faceb45104e7992631d27b7e98eeb8e28c2f388
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Apr 21 09:36:51 2023 +0100

    Fix max_age not set correctly when not using a request object
---
 .../oidc/profile/encoding/impl/AbstractOIDCMessageEncoder.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoding/impl/AbstractOIDCMessageEncoder.java b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoding/impl/AbstractOIDCMessageEncoder.java
index 397057e..7854db7 100644
--- a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoding/impl/AbstractOIDCMessageEncoder.java
+++ b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoding/impl/AbstractOIDCMessageEncoder.java
@@ -218,7 +218,7 @@ public abstract class AbstractOIDCMessageEncoder extends AbstractHttpServletResp
         if (req.getNonce() != null) {          
             params.add(new Pair<>("nonce", req.getNonce().getValue()));          
         }
-        if (req.getMaxAge() != null && req.getMaxAge().toSeconds() > 0) {          
+        if (req.getMaxAge() != null) {          
             params.add(new Pair<>("max_age", Long.toString(req.getMaxAge().toSeconds())));          
         }
         if (req.getLoginHint() != null) {          

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


More information about the commits mailing list