When a client application needs to access a resource or call a function in the resource server which are not related to a specific resource owner, use Client Credentials to obtain the access token.
After configuring the OAuth Token End Point policy, provide the following parameters in the Postman and click the Send button to get the access token:
- Method: POST
- URL: Project proxy URL
- Header
- Content-Type : x-www-form-urlencoded
- Query Parameters
- client_id: Consumer Key generated from Client Subscription.
- client_secret: Consumer Secret generated from Client Subscription.
- grant_type: "client_credentials"
- scope:.The possible scope or list of permissions that are requested. This parameter is OPTIONAL. Example: READ,WRITE etc. This list must be a subset of the scopes provided in the client subscription. Refer to the Obtaining Access Token with Scope section to know about Scope.
Sample requestSample URL generated by Postman using the above-mentioned parameter values
When a valid request is sent, an access token is generated as shown in the above figure.
Overview
Content Tools
ThemeBuilder