This documentation is for WSO2 Identity Server 5.0.0. View documentation for the latest release.
One Time Passwords - Identity Server 5.0.0 - WSO2 Documentation
Skip to end of metadata
Go to start of metadata

The one time password feature is used to facilitate the users who wish to have a new password each time they login. This increases the security to prevent password theft, since at each login, the user gets a new password. Also this helps users who do not like to remember passwords all the time.

In WSO2 Identity Server when users enable OTP using their profile configuration, each time when the user logs in, a new password is sent to the user’s email. This password can be used next time when the user needs to login.


You need to create the following claim and map it with a valid attribute with the underlying datastore. This is used to store the otp feature status for the user. 


In order to display this in the user profile you need to select the Supported by Default attribute found when creating the claim.

Set the following configuration in the {carbon_home}/repository/conf/security/identity-­ file.


Enabling OTP

Once the configuration is done, restart the server for your changes to take effect. Then login as a user to check the one time password feature. Also ensure that you have filled the necessary profile details including email.

Now when the user logs out and logs in again, a new password is generated and emailed to the user’s email.


  • No labels