This article explains how we can configure a custom OAuth 2.0 grant type known as the “mobile” grant type in WSO2 APIM. This mobile grant type is like the password grant type, where a mobile number will be passed as a parameter instead of a username and password.
Prerequisites:
- Apache Maven.
- Download the required source code from GitHub: https://github.com/wso2/samples-is/tree/master/oauth2/custom-grant
Custom-grant contains the source code for the mobile grant type that can be enhanced as per our requirement to configure the new grant type in WSO2 APIM.