User Self Care flow
One of the Cloud Identity Javascript mapping rules provided out of the box is the User Self Care rule, which operates at a high level as follows:
| Action | Result |
|---|---|
| Empty or "initiate" | Produce a landing page with all authentication methods listed and an Add new button. |
| "register" | Either register a new authenticator, or enroll a new method type. |
| "validateOTP" | In some cases, new enrollments must be validated before they can be used at runtime for authentication/verification. This action validates the given OTP. |
| "pollEnrollment" | Used to poll an in-progress authenticator enrollment to check if it is completed successfully yet. |
| "remove" | Remove the enrollment with the given ID. |
| "update" | Update the enrollment with a given ID. This is mainly used to enable or disable an enrollment. |
Several parameters can be modified at the beginning of the mapping rule to control different behavior:
| Variable | Affect | Default |
|---|---|---|
enabledMethods |
The type of methods to display to a user, and to allow to be enrolled. | ["Verify", "SMSOTP" "EmailOTP", "TOTP"] |