Requirements
Component | Requirement | Comments |
---|---|---|
Airlock IAM |
| If no Airlock 2FA subscription is available, a similar example can be set up using mTAN instead of Airlock 2FA. |
Component | Requirement | Comments |
---|---|---|
Airlock IAM |
| If no Airlock 2FA subscription is available, a similar example can be set up using mTAN instead of Airlock 2FA. |
This example shows how to configure and use the Loginapp password reset REST API for a more complex password reset flow.
All following procedures are exemplary and will vary according to your setup or needs.
The flow is configured as a public self-service flow:
Loginapp >> Public Self-Service Flows >> a flow implementing password reset.
The flow steps configured for this example and a high-level view of the REST calls is shown in the diagram below.
Step | Purpose | Comment |
---|---|---|
A | Provide the name of the user for which the password reset flow should be executed. | This step is required to start the flow and to select the user. By default, this step will complete with 200 OK, even if the user cannot be found, the account is locked or invalid. This is done to provide protection against user enumeration attacks. To change this, adapt the configuration of the Default Password Reset Restrictions plugin or define your own password restriction settings using the plugin Custom Public Self-Service Restrictions. |
B | Send an OTP to the end user's email address and verify OTP entered by the end user. | – |
C | Select a subflow (the end-user typically chooses the subflow). | The REST client may obtain the available selection options and then select one of the options. |
D | Order a new password letter. | This option is not selected in the sample REST call sequence. |
E | Approve password reset operation using Airlock 2FA. | To further secure the password reset operation, the operation has to be approved using the Airlock 2FA authentication factor (push or Offline QR-Code). |
F | Set the new password. | This step persists the new password if it passes the password policy. |