Self User Registration
In previous releases of Identity Server (IS 5.0.0, 5.1.0, 5.2.0), it can be used UserInformationRecovery Soap Service for self-registration feature.
You can follow this for more information about the soap service and how it can be configured.
Rest API support for Self-registration is available in IS 5.3.0 release.
UserInformationRecovery Soap APIs is also available in IS 5.3.0 release for supporting backward compatibility. You can try the Rest service through Identity Server login page (https://localhost:9443/dashboard)
You can't test the SOAP service through the login page. It can be tested using the user info recovery sample
How to configure self-registration rest API
- Verify following configurations in <IS_HOME>/repository/conf/identity/identity.xml file
- <EventListener ype="org.wso2.carbon.user.core.listener.UserOperationEventListener"name="org.wso2.carbon.identity.mgt.IdentityMgtEventListener" orderId="50" enable="false"/>
- <EventListener type="org.wso2.carbon.user.core.listener.UserOperationEventListener" name="org.wso2.carbon.identity.governance.listener.IdentityStoreEventListener" orderId="97" enable="true">
- <EventListener type="org.wso2.carbon.user.core.listener.UserOperationEventListener" name="org.wso2.carbon.identity.scim.common.listener.SCIMUserOperationListener orderId="90" enable="true"/>
- Configure email setting in <IS_HOME>/repository/conf/output-event-adapters.xml file.
- Start the WSO2 IS server and login to the management console.
- Click on Resident found under the Identity Providers section on the Main tab of the management console.
- Expand the Account Management Policies tab, then the Password Recovery tab and configure the following properties as required.
- Enable account lock feature to support self-registration with email confirmation feature
Once the user is registered, a notification will be sent to the user's email account if the
"Enable Notification Internally Management" property is true. Note: If it is not required to lock user once the registration is done, it is required disable both
|
APIs
- Register User
This API is used to create the user in Identity Server. You can try this from login page. (https://localhost:9443/dashboard/)
Click Register Now button and submit the form with data. Then it will send a notification and lock the user based on the configuration.
- Resend Code
This is used to resend the confirmation mail again.
You can try this from login page. First, register a new user and try to login to the Identity Server using the registered user credentials without click on the email link received via Identity Server for confirming the user. Then, you will see following in the login page. Click Re-Send button to resend the confirmation link.
- Validate Code
This API will be used to validate account confirmation link sent in the email.