I need to add password expiry feature in my application using wso2 identity server version 5.11. Referred to following documentation:https://is.docs.wso2.com/en/latest/learn/password-expiry/ As per the aforementioned document we need to download password policy authenticator which is not supported by latest IS 5.11. Also, I did not get Password Expiry option under Password Policies in resident section of identity providers.
Kindly suggest how can I add password expiry feature in wso2 IS 5.11 which will redirect my application to change password window after user password gets expire.
Thanks in Advance!
To do this,
Prerequsists
mvn clean install -DskipTest
<IS_HOME>/repository/conf/deployment.toml
file [[event_handler]]
name= "passwordExpiry"
subscriptions =["POST_UPDATE_CREDENTIAL", "POST_UPDATE_CREDENTIAL_BY_ADMIN", "POST_ADD_USER"]
[event_handler.properties]
passwordExpiryInDays= "30"
enableDataPublishing= false
priorReminderTimeInDays= "0"
<PASSWORD_RESET_ENFORCER_ARTIFACTS>/is/pwd-reset.jsp
) to the <IS_HOME>/repository/deployment/server/webapps/authenticationendpoint/
directory.org.wso2.carbon.extension.identity.authenticator.passwordpolicy.connector-<version>.jar
) to the <IS_HOME>/repository/components/dropins/
directory.Configuring the Expiration Policy
Configurations
claims
in the admin console and find http://wso2.org/claims/identity/lastPasswordUpdateTime
URI or last password update
claim and make it as supported by default.user-profile
of the user and update the Last Password Update
value to a lower value.
Local and Outbound Authentication Configuration
section in the Service Providers page of your service.Advanced Configuration
radio button option.
Add the basic authentication
as the first step and Password Reset Enforcer authentication
as the second step.
Select User subject identifier
from this step under basic authentication
.
Select Use attributes
from this step under Password Reset Enforcer
.
More info: https://github.com/wso2-extensions/identity-outbound-auth-passwordPolicy/blob/master/docs/config.md