07-31-2020 02:20 AM
Hello,
I'm trying to use Cisco Support API for PSS, particularly EoX API.
I have successfully registered my app and use client_id and secret from here - https://apiconsole.cisco.com/apps/myapps
When I try to get an authorization code with this URL and POST method in Postman:
https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&client_id= e5z3kfdbr3srkqzvzb6n33wj&client_secret=<secret>&response_type=code
I get this response:
{ "error_description": "Invalid client or client credentials.", "error": "invalid_client" }
I also tried GET method and this URL:
https://cloudsso.cisco.com/as/authorization.oauth2?response_type=code&grant_type=client_credentials&client_id= e5z3kfdbr3srkqzvzb6n33wj&client_secret=<secret>
This returns 400 - Unknown or invalid client_id
Below is the screenshot from API Console.
Any advice would be appreciated.
Solved! Go to Solution.
08-04-2020 07:11 AM
08-03-2020 03:50 PM
Hi
Having the same problem...
08-03-2020 06:54 PM
Have the same problem......
08-04-2020 02:25 AM
Hi,
I am not sure why you selecting "client_credentials" option for the grant.
I see you didn't get the "auth_code" from your Cisco SSO login, also you are not adding it in the headers for the URL used to request the token (https://cloudsso.cisco.com/as/token.oauth2 )
Please check this post (it might help), it shows the correct steps to get the token:
08-04-2020 07:11 AM
08-05-2020 10:39 AM
Worked for me also.
I registered a new app and selected only "Client Credentials" as a Grant Type.
After that I was able to get an access token with POST request to this URL:
The reply was like this:
{ "access_token": "<token>", "token_type": "Bearer", "expires_in": 3599 }
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide