cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
859
Views
0
Helpful
3
Replies

Support API invalid client or client credentials

panik
Level 1
Level 1

Hi,

I am trying to use the EoX Support API, but even though I am able to register my app on apiconsole.cisco.com, I always get an error 401 with "invalid client or client credentials" when I pass my key and secret to https://cloudsso.cisco.com/as/token.oauth2

Example:

POST https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&client_id=xxxxxxxxxxxxxxxxxxxx&client_secret=xxxxxxxxxxxxxxxxxxxx

I have tried deleting and re-registering the application several times, but I always get the same response.

Anyone run into this before?

Thanks in advance!

3 Replies 3

nehle
Level 1
Level 1

Hi,

I found out that the URL depends on the Client-ID and secret you are using. For the id generated in the developer portal it is the one you mentioned.
For IDs generated in the apiconsole you have to use this URL: https://id.cisco.com/oauth2/default/v1/token

Not sure, if it is working for you.

For example: When I then do an API request to get the End of Life date for a specific Product ID, I got the response "Developer Inactive"...

But with the changed URL at least the authentication should get you an bearer token.

Ruben Cocheno
Spotlight
Spotlight

@panik 

Are we good to close this?

Tag me to follow up.
Please mark it as Helpful and/or Solution Accepted if that is the case. Thanks for making Engineering easy again.
Connect with me for more on Linkedin https://www.linkedin.com/in/rubencocheno/