[java-identity-provider] branch main updated: Lock down input type.

Scott Cantor cantor.2 at osu.edu
Tue Feb 23 15:55:37 UTC 2021


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

scantor pushed a commit to branch main
in repository java-identity-provider.

View the commit online:
http://git.shibboleth.net/view/?p=java-identity-provider.git;a=commit;h=bf99ef5b3bd796451c87d3214348a937b6f02839

The following commit(s) were added to refs/heads/main by this push:
       new  bf99ef5b3 Lock down input type.
bf99ef5b3 is described below

commit bf99ef5b3bd796451c87d3214348a937b6f02839
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Feb 23 10:55:33 2021 -0500

    Lock down input type.
---
 .../main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java b/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java
index 819aeb61d..0c238c1ab 100644
--- a/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java
+++ b/idp-profile-api/src/main/java/net/shibboleth/idp/profile/logic/ScriptedPredicate.java
@@ -53,6 +53,7 @@ public class ScriptedPredicate
     public ScriptedPredicate(@Nonnull @NotEmpty @ParameterName(name="theScript") final EvaluableScript theScript,
             @Nullable @NotEmpty @ParameterName(name="extraInfo") final String extraInfo) {
         super(theScript, extraInfo);
+        setInputType(ProfileRequestContext.class);
     }
 
     /**
@@ -62,6 +63,7 @@ public class ScriptedPredicate
      */
     public ScriptedPredicate(@Nonnull @NotEmpty @ParameterName(name="theScript") final EvaluableScript theScript) {
         super(theScript);
+        setInputType(ProfileRequestContext.class);
     }
     
     /** {@inheritDoc} */

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


More information about the commits mailing list