cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Controller (SaaS, On Premises)

Not able to generate OAuth 2.0 Token for Appdynamics REST API call - Grant type value not specified.

Krishna Sankar.P
Producer

Not able to generate OAuth 2.0 Token for Appdynamics REST API call - Grant type value not specified.

I tried the following method to generate OAuth 2 token for API client (with reference to https://docs.appdynamics.com/display/PRO45/API+Clients#APIClients-using-the-access-token ),

 

https://saas.hostname.com/controller/api/oauth/access_token?grant_type=client_credentials&client_id=...

 

Client Id: is Api client name

client_secret : is the Secret key for the client.

 

I am getting the response like,

 

"Grant type value not specified."

 

Suggest me if a way to get the token.

Tags (2)
By replying you agree to the Terms and Conditions of the AppDynamics Community.
Not able to generate OAuth 2.0 Token for Appdynamics REST API call - Grant type value not specified.
5 REPLIES 5
Mark.Byrne
Architect

Hi there,

By the looks of the URL you have posted it looks like you are trying to obtain the token by a GET method. I'm not sure this will work, as the error message suggests that the server is looking for a POST parameter.

Try making a POST call like the one in the documentation.

Mark
Krishna Sankar.P
Producer

I have tested in post only.

oautherror.PNG

Mark.Byrne
Architect

I'm unfamiliar with the tool you are using, but try entering the values into the Body tab instead of the Query tab.

Mark
Krishna Sankar.P
Producer

Leave the Postman as REST Client,

I am getting the 401 Unauthorized and response is empty.

client_id: APICLIENT@Username is it right ?

 

Tags (3)
Mark.Byrne
Architect

Hi there,

 

The example has

client_id=<userName>@<accountName>

Try using that.

 

Mark