This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Enabling OAuth Support
To enable OAuth support for your client application, you must first register your application by providing an application name and a callback URL. Follow the instructions below to add a new application.
- Sign in. Enter your username and password to log on to the Management Console.
- Click the Main button to access the Manage menu.
- From the Manage menu, select OAuth.
- Click on the Register New Application link on the OAuth Management page.
- Specify the OAuth Version, Application Name and Callback URL on the Register New Application page, and click on the Add button.
- The new application will be registered in the Identity Server. Click on it to view its details.
- The following application details are displayed on the View/Update application settings page:
- Consumer Key - OAuth consumer key
- Consumer Secret - OAuth consumer secret
- Access Token URLÂ -Â https://localhost:9443/oauth/access-token.
- Authorize URLÂ -Â https://localhost:9443/oauth/authorize-url.
- Request Token URLÂ -Â https://localhost:9443/oauth/request-token.
Infor
The default OAuth token expiry time in WSO2 Identity Server is 1 hour (3600s). You can increase this by changing the value of element 'AccessTokenDefaultValidityPeriod' in <IS_HOME>/repository/conf/identity.xml file. Token expiry time cannot be set to infinity (never expires).