[java-oidc-common] branch main updated: Allow peer entity context to be null on signature handler
Phil Smart
philip.smart at jisc.ac.uk
Fri Apr 28 14:58:35 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=418589aa6d4f93b77e0220ea1f4da2b8c6aaec47
The following commit(s) were added to refs/heads/main by this push:
new 418589a Allow peer entity context to be null on signature handler
418589a is described below
commit 418589aa6d4f93b77e0220ea1f4da2b8c6aaec47
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Apr 28 15:58:32 2023 +0100
Allow peer entity context to be null on signature handler
---
.../oidc/security/impl/BaseJWTSignatureSecurityHandler.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/BaseJWTSignatureSecurityHandler.java b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/BaseJWTSignatureSecurityHandler.java
index 4d41b07..ef79c1b 100644
--- a/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/BaseJWTSignatureSecurityHandler.java
+++ b/oidc-common-crypto-impl/src/main/java/net/shibboleth/oidc/security/impl/BaseJWTSignatureSecurityHandler.java
@@ -198,10 +198,8 @@ public abstract class BaseJWTSignatureSecurityHandler extends BaseTrustEngineSec
providerMetadata = providerMetadataLookupStrategy.apply(messageContext);
clientInformation = clientInformationLookupStrategy.apply(messageContext);
- peerContext = messageContext.getSubcontext(OIDCPeerEntityContext.class);
- if (peerContext == null) {
- throw new MessageHandlerException("OIDCPeerEntityContext was missing or unpopulated");
- }
+ // Can be null
+ peerContext = messageContext.getSubcontext(OIDCPeerEntityContext.class);
final RelyingPartyContext rpCtx = adapt(relyingPartyContextLookupStrategy).apply(messageContext);
if (rpCtx != null && rpCtx.getConfiguration() != null &&
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list