[java-identity-provider] branch master updated: IDP-1157 - Expose ToU message code suffix property

Tom Zeller tzeller at dragonacea.biz
Wed Sep 26 19:04:14 EDT 2018


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

tzeller pushed a commit to branch master
in repository java-identity-provider.

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

The following commit(s) were added to refs/heads/master by this push:
       new  be8b735   IDP-1157 - Expose ToU message code suffix property
be8b735 is described below

commit be8b735bf469b5ab8fbb49b92410137ba769a28d
Author: Tom Zeller <tzeller at dragonacea.biz>
AuthorDate: Wed Sep 26 18:03:35 2018 -0500

    IDP-1157 - Expose ToU message code suffix property
    
    https://issues.shibboleth.net/jira/browse/IDP-1157
---
 idp-conf/src/main/resources/conf/idp.properties                       | 4 ++++
 .../src/main/resources/system/flows/intercept/terms-of-use-beans.xml  | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/idp-conf/src/main/resources/conf/idp.properties b/idp-conf/src/main/resources/conf/idp.properties
index af935c3..e759ad7 100644
--- a/idp-conf/src/main/resources/conf/idp.properties
+++ b/idp-conf/src/main/resources/conf/idp.properties
@@ -146,6 +146,10 @@ idp.authn.flows = Password
 #idp.consent.terms-of-use.userStorageKey = shibboleth.consent.PrincipalConsentStorageKey
 #idp.consent.terms-of-use.userStorageKeyAttribute = uid
 
+# Suffix of message property used as value of consent storage records when idp.consent.compareValues is true.
+# Defaults to text displayed to the user.
+#idp.consent.terms-of-use.consentValueMessageCodeSuffix = .text
+
 # Flags controlling how built-in attribute consent feature operates 
 #idp.consent.allowDoNotRemember = true
 #idp.consent.allowGlobal = true
diff --git a/idp-conf/src/main/resources/system/flows/intercept/terms-of-use-beans.xml b/idp-conf/src/main/resources/system/flows/intercept/terms-of-use-beans.xml
index 118028f..aedaa38 100644
--- a/idp-conf/src/main/resources/system/flows/intercept/terms-of-use-beans.xml
+++ b/idp-conf/src/main/resources/system/flows/intercept/terms-of-use-beans.xml
@@ -19,7 +19,8 @@
 
     <bean id="TermsOfUseConsentFunction"
         class="net.shibboleth.idp.consent.logic.impl.MessageSourceConsentFunction"
-        p:consentKeyLookupStrategy-ref="shibboleth.consent.terms-of-use.Key" />
+        p:consentKeyLookupStrategy-ref="shibboleth.consent.terms-of-use.Key"
+        p:consentValueMessageCodeSuffix="%{idp.consent.terms-of-use.consentValueMessageCodeSuffix:.text}" />
 
     <bean id="IsConsentRequiredPredicate"
         class="net.shibboleth.idp.consent.logic.impl.IsConsentRequiredPredicate" />

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


More information about the commits mailing list