Skip to main content
Skip table of contents

Using Client Credentials

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
    • name: grant_type
    • Value: client_credentials
  • Parameter Format: x-www-form-urlencoded
  • Parameters
    • client_id (Consumer Key generated from Client Subscription)
    • client_secret (Consumer Secret generated from Client Subscription)

    Sample request

    CODE
    curl -X POST http://192.168.2.231:2160/tokenEnd/1.0  -H 'accept: application/json' -H 'cache-control: no-cache' -H 'client_id: Qvf-wSSLmGfjULQrbMCmRcab'  -H 'client_secret: QpFgbhZtuILPDBrHvBujaMQwmyrRieTisdnh'  -H 'content-type: application/x-www-form-urlencoded'  -H 'grant_type: client_credentials' -d
  • Query Parameter

     


When a valid request is sent, an access token is generated as shown in the above figure.

After receiving the access token, refer the Accessing protected resources using Access Token section to see how to access protected resources.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.