[java-idp-plugin-oidc-rp] branch main updated: JOIDCRP-49 - Add CSP protection to views

Phil Smart philip.smart at jisc.ac.uk
Fri Apr 5 13:51:02 UTC 2024


This is an automated email from the git hooks/post-receive script.

philsmart pushed a commit to branch main
in repository java-idp-plugin-oidc-rp.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-oidc-rp.git;a=commit;h=b7eae28f2a80558cc9cafa784a6ac96d9a43f9cb

The following commit(s) were added to refs/heads/main by this push:
     new b7eae28  JOIDCRP-49 - Add CSP protection to views
b7eae28 is described below

commit b7eae28f2a80558cc9cafa784a6ac96d9a43f9cb
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri Apr 5 14:51:00 2024 +0100

    JOIDCRP-49 - Add CSP protection to views
    
     - Allowing turning off CSP with idp.encoders.cspEnabled in IdP 5.1
    
    https://shibboleth.atlassian.net/browse/JOIDCRP-49
---
 .../flows/authn/OIDCRelyingParty/oidc-relying-party-authn-beans.xml   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/idp-oidc-rp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OIDCRelyingParty/oidc-relying-party-authn-beans.xml b/idp-oidc-rp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OIDCRelyingParty/oidc-relying-party-authn-beans.xml
index 862e58c..41119ae 100644
--- a/idp-oidc-rp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OIDCRelyingParty/oidc-relying-party-authn-beans.xml
+++ b/idp-oidc-rp-impl/src/main/resources/META-INF/net/shibboleth/idp/flows/authn/OIDCRelyingParty/oidc-relying-party-authn-beans.xml
@@ -257,8 +257,8 @@
         class="net.shibboleth.oidc.profile.encoding.impl.HTTPPostAuthnRequestEncoder" init-method="" scope="prototype"
         p:velocityEngine-ref="shibboleth.VelocityEngine" p:httpServletResponseSupplier-ref="shibboleth.HttpServletResponseSupplier"
         p:authorizationParamsAreValidPredicate="#{getObject('shibboleth.authn.oidc.rp.AuthzParamsValidPredicate')}" 
-        p:cSPDigester-ref="RPCSPDigester"
-        p:cSPNonceGenerator-ref="RPCSPNonce"/>
+        p:cSPDigester-ref="#{%{idp.encoders.cspEnabled:true} ? getObject('RPCSPDigester') : null} "
+        p:cSPNonceGenerator-ref="#{%{idp.encoders.cspEnabled:true} ? getObject('RPCSPNonce') : null}"/>
 
     <bean id="EncodeMessage" class="org.opensaml.profile.action.impl.EncodeMessage" scope="prototype"
         p:messageEncoderFactory-ref="messageEncoderFactory" p:httpServletResponseSupplier-ref="shibboleth.HttpServletResponseSupplier" />

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


More information about the commits mailing list