Adding Multiple Application Callback URLs in WSO2 API Manager 2.0

With WSO2 API Manager 2.0 it is possible to configure multiple application callback URLs or better yet, a regex pattern for the callback URL. In earlier versions, if the you wanted to use the same application for different service providers, you needed to configure an application for each service provider. Even if you send a different callback URL with the authorization/token request, from the serverside, the callback URL validation fails. Now, since we can configure a regex pattern for the callback URL, you will be able to configure multiple callback URLs. Here’s how you can achieve this.

Assume you have 2 service providers which needs to use the same application which has the callback URLs as

First login to the API store and create an application.


Click on Production Keys tab and set the callback URL as below. Then click on Generate Keys.



An application will be created with the provided configurations in the server.


You can configure any regex pattern to match the callback URLs you want to register with the application. The only requirment is that the pattern should be followd by the string regexp= as shown above.