[java-oidc-common] branch main updated: Add nonce to authentication request params encoder
Phil Smart
philip.smart at jisc.ac.uk
Thu Feb 10 09:32:42 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=ec18661940e9bad45debb4435c78d8f4bca2504a
The following commit(s) were added to refs/heads/main by this push:
new ec18661 Add nonce to authentication request params encoder
ec18661 is described below
commit ec18661940e9bad45debb4435c78d8f4bca2504a
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Thu Feb 10 09:32:36 2022 +0000
Add nonce to authentication request params encoder
---
.../oidc/profile/encoder/impl/AbstractOIDCMessageEncoder.java | 3 +++
1 file changed, 3 insertions(+)
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 e9f5a10..102313c 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
@@ -98,6 +98,9 @@ public abstract class AbstractOIDCMessageEncoder extends AbstractHttpServletResp
if (req.getRequestObject() != null) {
params.add(new Pair<>("request", req.getRequestObject().serialize()));
}
+ if (req.getNonce() != null) {
+ params.add(new Pair<>("nonce", req.getNonce().getValue()));
+ }
if (req.getMaxAge() != null && req.getMaxAge().toSeconds() > 0) {
params.add(new Pair<>("max_age", Long.toString(req.getMaxAge().toSeconds())));
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list