## ## Velocity Template for DisplayAttributeReleasePage view-state ## ## Velocity context will contain the following properties : ## ## attributeReleaseContext - context holding consentable attributes ## attributeReleaseFlowDescriptor - attribute consent flow descriptor ## attributeDisplayNameFunction - function to display attribute name ## attributeDisplayDescriptionFunction - function to display attribute description ## consentContext - context representing the state of a consent flow ## encoder - HTMLEncoder class ## flowExecutionKey - SWF execution key (this is built into the flowExecutionUrl) ## flowExecutionUrl - form action location ## flowRequestContext - Spring Web Flow RequestContext ## profileRequestContext - OpenSAML profile request context ## request - HttpServletRequest ## response - HttpServletResponse ## rpUIContext - context with SP UI information from the metadata ## environment - Spring Environment object for property resolution #set ($serviceName = $rpUIContext.serviceName) #set ($serviceDescription = $rpUIContext.serviceDescription) #set ($informationURL = $rpUIContext.informationURL) #set ($privacyStatementURL = $rpUIContext.privacyStatementURL) #set ($rpOrganizationLogo = $rpUIContext.getLogo()) #set ($rpOrganizationName = $rpUIContext.organizationName) #set ($replaceDollarWithNewline = true) ## #springMessageText("idp.attribute-release.title", "Information Release")
#if ($rpOrganizationLogo) #end
#if ($serviceName)

#springMessageText("idp.attribute-release.serviceNameLabel", "You are about to access the service:")
$serviceName #if ($rpOrganizationName) #springMessageText("idp.attribute-release.of", "of") $encoder.encodeForHTML($rpOrganizationName) #end

#end #if ($serviceDescription)

#springMessageText("idp.attribute-release.serviceDescriptionLabel", "Description as provided by this service:")
$encoder.encodeForHTML($serviceDescription)

#end #if ($informationURL)

#springMessageText("idp.attribute-release.informationURLLabel", "Additional information about the service")

#end
#foreach ($attribute in $attributeReleaseContext.getConsentableAttributes().values()) #end
#springMessageText("idp.attribute-release.attributesHeader", "Information to be Provided to Service")
$encoder.encodeForHTML($attributeDisplayNameFunction.apply($attribute)) #foreach ($value in $attribute.values) #if ($replaceDollarWithNewline) #set ($encodedValue = $encoder.encodeForHTML($value.getDisplayValue()).replaceAll($encoder.encodeForHTML("$"),"
")) #else #set ($encodedValue = $encoder.encodeForHTML($value.getDisplayValue())) #end #if ($attributeReleaseFlowDescriptor.perAttributeConsentEnabled) #else $encodedValue #end
#end
#if ($attributeReleaseFlowDescriptor.perAttributeConsentEnabled) #set ($inputType = "checkbox") #else #set ($inputType = "hidden") #end
#if ($privacyStatementURL)

#springMessageText("idp.attribute-release.privacyStatementURLLabel", "Data privacy information of the service")

#end

#springMessageText("idp.attribute-release.confirmationQuestion", "The information above would be shared with the service if you proceed. Do you agree to release this information to the service every time you access it?")

#if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed || $attributeReleaseFlowDescriptor.globalConsentAllowed)
#springMessageText("idp.attribute-release.consentMethod", "Select an information release consent duration:") #end #if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed)

  • #springMessageText("idp.attribute-release.doNotRememberConsentItem", "I agree to send my information this time.")

#end #if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed || $attributeReleaseFlowDescriptor.globalConsentAllowed)

  • #springMessageText("idp.attribute-release.rememberConsentItem", "I agree that the same information will be sent automatically to this service in the future.")

#end #if ($attributeReleaseFlowDescriptor.globalConsentAllowed)

  • #springMessageText("idp.attribute-release.globalConsentItem", "I agree that all of my information will be released to any service.")

#end #if ($attributeReleaseFlowDescriptor.doNotRememberConsentAllowed || $attributeReleaseFlowDescriptor.globalConsentAllowed) #springMessageText("idp.attribute-release.consentMethodRevoke", "This setting can be revoked at any time with the checkbox on the login page.")
#end