cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
593
Views
0
Helpful
1
Replies

Unable to authenticate PSIRT API

Hi,

 

I have registered an app on apiconsole using PSIRT OpenVuln api and followed this guide to get authorization and the access tokens. I am using "authorization code grant" and have configured all the required parameters at the registration. I received an API key and client secret (no client id was shown as in the documentation), I used the key in place of the client id and used this GET request as the first authorization step using Postman. https://cloudsso.cisco.com/as/authorization.oauth2?response_type=code&client_id=<myclient_id(api key) here>

However I am getting an error "400 Unknown or invalid client_id". It seems that I cannot find another client_id anywhere else as well.

When I change the grant type to client credentials and use the respective POST api call (https://cloudsso.cisco.com/as/token.oauth2 with client_secret,id,grant_type on the body), I get 401 Unauthorized error. The app is active as well as the redirect URL. What can be the issue? Thanks

1 Reply 1

For the client credential grant type problem was solved. The reason was some unnecessary white spaces after the client secret value on postman.