Not able to generate OAuth 2.0 Token for Appdynamics REST API call - Grant type value not specified.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2020 11:24 PM
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 ),
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2020 01:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2020 01:53 AM
I have tested in post only.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2020 02:06 AM
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-04-2020 09:54 AM
Leave the Postman as REST Client,
I am getting the 401 Unauthorized and response is empty.
client_id: APICLIENT@Username is it right ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2020 11:57 AM
Hi there,
The example has
client_id=<userName>@<accountName>
Try using that.
Mark