cancel
Showing results for 
Search instead for 
Did you mean: 

Unable generate Access Token using Oauth policy in SAP API Management

former_member538292
Participant
0 Kudos

Dear All,

Hope all are doing well...

I am new to SAP APIM, I am trying to generate a Oauth token using policy.

I was followed some blogs but still it is not working.

I will elaborate what i done.

I have created one API proxy, Product and application added the resource as POST(/teoken) in the Oauth policy.

i added below (code found some blogs).

<OAuthV2 async="false" continueOnError="false" enabled="true" xmlns="http://www.sap.com/apimgmt">
<Operation>GenerateAccessToken</Operation>
<GenerateResponse/>
<SupportedGrantTypes>
<GrantType>client_credentials</GrantType>
</SupportedGrantTypes>
</OAuthV2>

once deployed the API Proxy doing testing from POSTMAN, call success access token is generating.

Thanks,

Kumar

Accepted Solutions (0)

Answers (0)