07-01-2019 02:27 AM
Hello,
I'm tryining to use Cisco Support API for PSS.
After reading :
Devnet getting started : https://developer.cisco.com/docs/support-apis/#!getting-started-with-cisco-support-apis-for-pss
API Console User guide : https://apiconsole.cisco.com/files/APIx_Platform_User_Guide.pdf
API Token Access : https://apiconsole.cisco.com/files/Token_Access.pdf
I am able to see my application under https://apiconsole.cisco.com/apps/myapps with a client ID and client secret.
I'm triying to get a token using postman with :
Authorization Type : OAuth2.0
Grant type : Client Credential
Access token URL : https://cloudsso.cisco.com/as/authorization.oauth2
and give client ID and secret as my request parameters.
With postman I can't receive a token.
According to the Token Access documentation, I tried with a web browser using this URL :
https://cloudsso.cisco.com/as/authorization.oauth2?response_type=code&client_id=[my app client_id]
I've got :
Oops
Looks like something is not right. Please contact your administrator.
404 - Not Found
Does someone know how to deal with that ?
Solved! Go to Solution.
07-01-2019 05:16 AM
It should be:
https://cloudsso2.cisco.com/as/token.oauth2
cheers,
Seb.
07-01-2019 02:40 AM
Hi there,
Going back to your Postman issue, in the body of the POST request are you specifying the grant_type key-value pair along with the client_id and client_secret?:
grant_type: client_credentials
cheers,
Seb.
07-01-2019 03:56 AM
Hi,
At first no, I didn't use this parameter.
I've just try this one with postman that generate this GET URL : https://cloudsso.cisco.com/as/authorization.oauth2?response_type=code&grant_type=client_credentials&client_id=*******&client_secret=**********
But I still see the same error.
I attach the view of my postman.
07-01-2019 04:07 AM - edited 07-01-2019 04:07 AM
Change the REST method (the dropdown to the left of the URL) from GET to POST and you will receive the correct response containing the access_token .
cheers,
Seb.
07-01-2019 04:18 AM
It seems that I have the same result.
How to check my client ID and secret ?
This URL is correct : https://cloudsso.cisco.com/as/authorization.oauth2 ?
I've attached the screenshot for this request with POST method.
07-01-2019 05:16 AM
It should be:
https://cloudsso2.cisco.com/as/token.oauth2
cheers,
Seb.
07-01-2019 05:20 AM
09-02-2020 01:31 PM
Do you know if this changed again? I am getting errors when trying to use it.
06-21-2024 08:27 AM
Did not resolve my issue with Cisco Prime Infr 3.2
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