Please provide a process for configuring Client-Credentials grant type in apigee by usign oauth

I am trying to configure Client-Credentials Grant type in apigee by using OAUTH can any please provide the information of required policies.

@Rajesh Nimmada , Have you tried creating the API Proxy with oAuth generate token ? Did you create a product & developer app to get keys ? What have you tried ? Where are you stuck ? Did you get a chance to refer our docs ?

ya I created application and got client-id and secret and also I got following response in jason format

{
“issued_at”: “1478798385370”,
“application_name”: “3c1c7400-bfd4-48c9-9f93-cda2cbe9055b”,
“scope”: “”,
“status”: “approved”,
“api_product_list”: “[sampleoauth-Product]”,
“expires_in”: “3599”,
“developer.email”: “rnimmada@miraclesoft.com”,
“token_type”: “BearerToken”,
“client_id”: “vdJLUz6XydizpK5Ms5EQFOuo90IKRpri”,
“access_token”: “m0X2NR9RkY5tSr6PAzzeCutdNuP0”,
“organization_name”: “rajeshnimmada”,
“refresh_token_expires_in”: “0”,
“refresh_count”: “0”
}

tell me the next process

How can I test this in SOAP-ui

@Rajesh Nimmada , You got the access token from client credentials generate API token call, Once you have the access token , Call the actual API resources using Authorization header ,

Authorization : Bearer {ACCESSTOKEN}

Make sure your API resource does verify access token & same API resource / proxy has been added to the product that you have used to generate token.

1 Like

Ya I did the same thing by adding Bearer in authorization headers but it asking valid client identifier.

I specified the policies below

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> GenerateAccessToken 3600000 client_credentials request.queryparam.grant_type <?xml version="1.0" encoding="UTF-8" standalone="yes"?> false VerifyAccessToken Bearer

Thank you very much for your co-operation I got successful response.