diff options
Diffstat (limited to 'conf-from-container/conf/intercept/expiring-password-intercept-config.xml')
-rw-r--r-- | conf-from-container/conf/intercept/expiring-password-intercept-config.xml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/conf-from-container/conf/intercept/expiring-password-intercept-config.xml b/conf-from-container/conf/intercept/expiring-password-intercept-config.xml new file mode 100644 index 0000000..5447b16 --- /dev/null +++ b/conf-from-container/conf/intercept/expiring-password-intercept-config.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns="http://www.springframework.org/schema/beans" + xmlns:context="http://www.springframework.org/schema/context" + xmlns:util="http://www.springframework.org/schema/util" + xmlns:p="http://www.springframework.org/schema/p" + xmlns:c="http://www.springframework.org/schema/c" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd + http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd" + + default-init-method="initialize" + default-destroy-method="destroy"> + + <!-- + Condition to evaluate to determine if expiring password view should be displayed, false means to notify. + + The example uses a built-in class to evaluate an attribute containing a date/time of password expiration. + The format pattern parses the value and the negative offset determines how soon to warn the user beforehand. + --> + <bean id="shibboleth.expiring-password.Condition" class="net.shibboleth.idp.profile.logic.DateAttributePredicate" + c:attribute="passwordExpiration" p:resultIfMissing="true"> + <constructor-arg name="formatter"> + <bean class="org.joda.time.format.DateTimeFormat" factory-method="forPattern" c:_0="yyyyMMddHHmmss'T'" /> + </constructor-arg> + <property name="systemTimeOffset"> + <bean class="org.joda.time.Duration" factory-method="standardDays" c:_0="-14" /> + </property> + </bean> + + <!-- Name of cookie to track when user was last notified. --> + <bean id="shibboleth.expiring-password.NotifyCookieName" class="java.lang.String" c:_0="shib_idp_exp_pwd" /> + + <!-- Interval (milliseconds) between notifications, default is 8 hours. --> + <bean id="shibboleth.expiring-password.NotifyInterval" class="java.lang.Long" c:_0="28800000" /> + +</beans> |