[java-oidc-common] branch main updated: Add missing max_age to request parameter serialization
Phil Smart
philip.smart at jisc.ac.uk
Fri Jan 21 14:16:38 UTC 2022
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=99b362bb0117256c98a5b52d822ea67451e17ee2
The following commit(s) were added to refs/heads/main by this push:
new 99b362b Add missing max_age to request parameter serialization
99b362b is described below
commit 99b362bb0117256c98a5b52d822ea67451e17ee2
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Jan 21 14:16:31 2022 +0000
Add missing max_age to request parameter serialization
---
.../oidc/profile/encoder/impl/AbstractOIDCMessageEncoder.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoder/impl/AbstractOIDCMessageEncoder.java b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoder/impl/AbstractOIDCMessageEncoder.java
index fe68eb7..e9f5a10 100644
--- a/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoder/impl/AbstractOIDCMessageEncoder.java
+++ b/oidc-common-profile-impl/src/main/java/net/shibboleth/oidc/profile/encoder/impl/AbstractOIDCMessageEncoder.java
@@ -75,7 +75,6 @@ public abstract class AbstractOIDCMessageEncoder extends AbstractHttpServletResp
*/
protected List<Pair<String, String>> createParametersFromRequest(@Nonnull final OIDCAuthenticationRequest req) {
-
final List<Pair<String, String>> params = new ArrayList<>();
params.add(new Pair<>("client_id", req.getClientID().getValue()));
@@ -98,7 +97,10 @@ public abstract class AbstractOIDCMessageEncoder extends AbstractHttpServletResp
}
if (req.getRequestObject() != null) {
params.add(new Pair<>("request", req.getRequestObject().serialize()));
- }
+ }
+ if (req.getMaxAge() != null && req.getMaxAge().toSeconds() > 0) {
+ params.add(new Pair<>("max_age", Long.toString(req.getMaxAge().toSeconds())));
+ }
//TODO: requestURI, includedGrantedScopes?, resource_uris?
return params;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list