Set Up My Account in a Development Environment¶
In WSO2 Identity Server (WSO2 IS), My Account application can be accessed
via the URL
Follow the steps given below to set up My Account application in a development environment.
Before you begin
Step 1: Configure WSO2 Identity Server¶
The default dev origin, hostname, and port that is set for My Account is
Change this in the following configurations if you have changed this port or any other configuration.
Enable cross-origin requests for WSO2 Identity Server.
Cross-origin requests are blocked by default in WSO2 IS as a security measure. Add the following CORS configuration to the
<IS_HOME>/repository/resources/conf/deployment.tomlfile to enable it.
[cors] allow_generic_http_requests = true allow_any_origin = false allowed_origins = [ "https://localhost:9000" ] allow_subdomains = false supported_methods = [ "GET", "POST", "HEAD", "OPTIONS", "DELETE", "PATCH", "PUT" ] support_any_header = true supported_headers =  exposed_headers = ["Location"] supports_credentials = true max_age = 3600 tag_requests = false
Allow list your hostname and port as a trusted FIDO2 origin by adding the dev url as an allowed origin in the
Make the callback URL configurable by adding the following configuration to the
[system_applications] read_only_apps = 
Restart WSO2 IS.
Configure the callback URLs for My Account.
- Log in to the WSO2 IS management console.
- Click Service Providers > List.
- Click Edit to edit the My Account service provider.
- Expand Inbound Authentication Configuration, and then expand OAuth/OpenID Connect Configuration. Click Edit.
- Change the Callback URL field to reflect the port as 9000 or you can add a regexp as follows.
Step 2: Build the Identity Apps repository¶
Fork the original repository to start working on it. You can also directly clone the original repo but it is recommended to create your own fork.
git clone https://github.com/wso2/identity-apps cd identity-apps
Build the project using either of the following commands.
mvn clean install
npm run build
Step 3: Run My Account in dev mode¶
After the build is complete, navigate to the myaccount directory and run the application using the webpack dev server.
cd apps/myaccount npm start
The application will be served from