<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Cisco PSIRT openVuln API oauth2 Token &amp;quot;Not Authorized&amp;quot; in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563481#M226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently attempting to gain access to the PSIRT openVuln API and am following along with the "&lt;A href="https://developer.cisco.com/site/PSIRT/get-started/getting-started.gsp"&gt;Getting Started&lt;/A&gt;" directions. So far, I have registered an application for "&lt;SPAN style="color: #354b55; font-size: 12px;"&gt;Cisco PSIRT openVuln API" using my CCO ID with the &lt;SPAN style="color: #333333; font-size: 12px; font-weight: bold;"&gt;Grant Type:&lt;/SPAN&gt; "&lt;SPAN style="color: #333333; font-size: 12px; font-weight: bold;"&gt;Client Credentials&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;".&amp;nbsp; My application has a &lt;STRONG&gt;Status&lt;/STRONG&gt; of "&lt;STRONG&gt;active&lt;/STRONG&gt;" and I have a corresponding &lt;STRONG&gt;Client ID &lt;/STRONG&gt;and &lt;STRONG&gt;Client Secret&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;I am currently having issues with getting a valid access_token (step 3) and would like to know if I am using the correct methodology. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Via Postman:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;My GET request is&lt;/SPAN&gt;: &lt;SPAN style="text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://api.cisco.com/security/advisories/cvrf/all" rel="nofollow" target="_blank"&gt;https://api.cisco.com/security/advisories/cvrf/all&lt;/A&gt;&lt;/SPAN&gt; (as specified in the &lt;A href="https://developer.cisco.com/site/PSIRT/get-started/getting-started.gsp"&gt;API&lt;/A&gt;) &lt;/P&gt;&lt;P&gt;Under the "Authorization" tab, I have set my &lt;STRONG&gt;Type&lt;/STRONG&gt; to "&lt;STRONG&gt;OAuth 2.0&lt;/STRONG&gt;" and clicked "Get New Access Token"&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My Access Token Parameters are as follows&lt;UL&gt;&lt;LI&gt;Token Name: PSIRT token&lt;/LI&gt;&lt;LI&gt;Auth URL: &lt;SPAN style="text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://cloudsso.cisco.com/as/token.oauth2" rel="nofollow" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;AccessToken URL: &lt;SPAN style="text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://cloudsso.cisco.com/as/token.oauth2" rel="nofollow" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Client ID: &amp;lt;client_id&amp;gt;&lt;/LI&gt;&lt;LI&gt;Client Secret: &amp;lt;client_secret&amp;gt;&lt;/LI&gt;&lt;LI&gt;Grant Type: Client Credentials&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I then hit "Use Token"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I send the request I get back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;h1&amp;gt;Not Authorized&amp;lt;/h1&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also gone through the Curl &lt;A _jive_internal="true" href="https://community.cisco.com/docs/DOC-64275"&gt;walk-through&lt;/A&gt; posted by Omar, however this also did not work even when running it in Postman as recommended by Bradley &lt;A _jive_internal="true" href="https://community.cisco.com/thread/70224"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my command: &lt;STRONG&gt;&lt;SPAN&gt;curl -s -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "client_id=&amp;lt;client_id&amp;gt;" -d "client_secret=&amp;lt;client_secret&amp;gt;" -d "grant_type=client_credentials" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://cloudsso.cisco.com/as/token.oauth2" rel="nofollow" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(I get no response from this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I using the wrong URLs or even going about this in an entirely wrong manner? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Aug 2017 19:05:41 GMT</pubDate>
    <dc:creator>lukas.leung</dc:creator>
    <dc:date>2017-08-01T19:05:41Z</dc:date>
    <item>
      <title>Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563481#M226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently attempting to gain access to the PSIRT openVuln API and am following along with the "&lt;A href="https://developer.cisco.com/site/PSIRT/get-started/getting-started.gsp"&gt;Getting Started&lt;/A&gt;" directions. So far, I have registered an application for "&lt;SPAN style="color: #354b55; font-size: 12px;"&gt;Cisco PSIRT openVuln API" using my CCO ID with the &lt;SPAN style="color: #333333; font-size: 12px; font-weight: bold;"&gt;Grant Type:&lt;/SPAN&gt; "&lt;SPAN style="color: #333333; font-size: 12px; font-weight: bold;"&gt;Client Credentials&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;".&amp;nbsp; My application has a &lt;STRONG&gt;Status&lt;/STRONG&gt; of "&lt;STRONG&gt;active&lt;/STRONG&gt;" and I have a corresponding &lt;STRONG&gt;Client ID &lt;/STRONG&gt;and &lt;STRONG&gt;Client Secret&lt;/STRONG&gt;. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;I am currently having issues with getting a valid access_token (step 3) and would like to know if I am using the correct methodology. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Via Postman:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;My GET request is&lt;/SPAN&gt;: &lt;SPAN style="text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://api.cisco.com/security/advisories/cvrf/all" rel="nofollow" target="_blank"&gt;https://api.cisco.com/security/advisories/cvrf/all&lt;/A&gt;&lt;/SPAN&gt; (as specified in the &lt;A href="https://developer.cisco.com/site/PSIRT/get-started/getting-started.gsp"&gt;API&lt;/A&gt;) &lt;/P&gt;&lt;P&gt;Under the "Authorization" tab, I have set my &lt;STRONG&gt;Type&lt;/STRONG&gt; to "&lt;STRONG&gt;OAuth 2.0&lt;/STRONG&gt;" and clicked "Get New Access Token"&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;My Access Token Parameters are as follows&lt;UL&gt;&lt;LI&gt;Token Name: PSIRT token&lt;/LI&gt;&lt;LI&gt;Auth URL: &lt;SPAN style="text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://cloudsso.cisco.com/as/token.oauth2" rel="nofollow" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;AccessToken URL: &lt;SPAN style="text-decoration: underline;"&gt;&lt;A class="jive-link-external-small" href="https://cloudsso.cisco.com/as/token.oauth2" rel="nofollow" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Client ID: &amp;lt;client_id&amp;gt;&lt;/LI&gt;&lt;LI&gt;Client Secret: &amp;lt;client_secret&amp;gt;&lt;/LI&gt;&lt;LI&gt;Grant Type: Client Credentials&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I then hit "Use Token"&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;When I send the request I get back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&amp;lt;h1&amp;gt;Not Authorized&amp;lt;/h1&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also gone through the Curl &lt;A _jive_internal="true" href="https://community.cisco.com/docs/DOC-64275"&gt;walk-through&lt;/A&gt; posted by Omar, however this also did not work even when running it in Postman as recommended by Bradley &lt;A _jive_internal="true" href="https://community.cisco.com/thread/70224"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my command: &lt;STRONG&gt;&lt;SPAN&gt;curl -s -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "client_id=&amp;lt;client_id&amp;gt;" -d "client_secret=&amp;lt;client_secret&amp;gt;" -d "grant_type=client_credentials" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://cloudsso.cisco.com/as/token.oauth2" rel="nofollow" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(I get no response from this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I using the wrong URLs or even going about this in an entirely wrong manner? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 19:05:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563481#M226</guid>
      <dc:creator>lukas.leung</dc:creator>
      <dc:date>2017-08-01T19:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563482#M227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lukas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following are my settings in Postman:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-08-01 at 3.04.18 PM.png" class="image-1 jive-image" src="/legacyfs/online/fusion/109872_Screen Shot 2017-08-01 at 3.04.18 PM.png" style="height: 743px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you should see the new token, as shown below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-08-01 at 3.06.32 PM.png" class="jive-image image-2" src="/legacyfs/online/fusion/109873_Screen Shot 2017-08-01 at 3.06.32 PM.png" style="height: 277px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the sample curl and others at:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CiscoPSIRT/openVulnAPI/tree/master/example_code" style="font-size: 10pt;" title="https://github.com/CiscoPSIRT/openVulnAPI/tree/master/example_code"&gt;https://github.com/CiscoPSIRT/openVulnAPI/tree/master/example_code&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does seem that you have the correct URL. If this doest not work, try to register "another application" and try the new client credentials. Please let me know if you don't get it to work and glad to help you more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Omar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 20:10:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563482#M227</guid>
      <dc:creator>Omar Santos</dc:creator>
      <dc:date>2017-08-01T20:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563483#M228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Omar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your prompt and informative response! Unfortunately, my issue persists. I went ahead and registered "another application" and documented the procedure I followed below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Registering Application:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Registering.jpg" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/109874_Registering.jpg" style="height: 506px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Validating Existence:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Applications.jpg" class="jive-image image-2" src="https://community.cisco.com/legacyfs/online/fusion/109875_Applications.jpg" style="height: 266px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Postman Access Token Settings:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="AccessToken.jpg" class="jive-image image-3" src="https://community.cisco.com/legacyfs/online/fusion/109876_AccessToken.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Postman Execution/Response:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Response.jpg" class="jive-image image-4" src="https://community.cisco.com/legacyfs/online/fusion/109877_Response.jpg" style="height: 363px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I additionally looked at your Git and followed the &lt;A href="https://github.com/CiscoPSIRT/openVulnAPI/tree/master/example_code/curl_examples"&gt;Curl example&lt;/A&gt;&lt;SPAN style="font-size: 10pt;"&gt; and received no response:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="Curl.jpg" class="jive-image image-5" src="https://community.cisco.com/legacyfs/online/fusion/109878_Curl.jpg" style="height: 79px; width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I would greatly appreciate any more help you are able to offer! Please let me know if you need any additional information.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you for your time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Best,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Lukas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 21:06:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563483#M228</guid>
      <dc:creator>lukas.leung</dc:creator>
      <dc:date>2017-08-01T21:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563484#M229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UPDATE: SOLVED&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the help of Cisco's Jason Smith, I was able to issue a valid request via both Postman and Curl. The missing piece was to take the access_token (as produced via Omar's method) as well as the token_type and set them as an 'Authorization' header field as well as providing an 'Accept' header.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More explicitly:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Postman:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;1. Get access_token following the steps Omar laid out.&lt;/P&gt;&lt;P&gt;2. Do not click '&lt;EM&gt;Use Token&lt;/EM&gt;' instead go to the '&lt;EM&gt;Headers&lt;/EM&gt;' Tab in Postman and set the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Key:&lt;/STRONG&gt; Authorization&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Value:&lt;/STRONG&gt; Bearer &amp;lt;access_token&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Key:&lt;/STRONG&gt; Accept&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Value:&lt;/STRONG&gt; application/json&lt;/P&gt;&lt;P&gt;3. Hit '&lt;EM&gt;Send&lt;/EM&gt;' and watch the magic happen &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Curl:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The issue I was having with getting the token had to do with my proxy settings. Ensure you are first doing:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;$ export&amp;nbsp; https_proxy=&amp;lt;https_host&amp;gt;:&amp;lt;port&amp;gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can issue your access token request:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;$ curl -s -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "client_id=&amp;lt;client_id&amp;gt;" -d "client_secret=&amp;lt;client_secret&amp;gt;" -d "grant_type=client_credentials" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://cloudsso.cisco.com/as/token.oauth2" rel="nofollow" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when you get the response, you should have an access token and a token type so using these do:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN&gt;$ curl -X GET -s -k -H "Accept: application/json" -H "Authorization: &amp;lt;token_type&amp;gt; &amp;lt;access_token&amp;gt;" &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://api.cisco.com/security/advisories/cvrf/all" rel="nofollow" target="_blank"&gt;https://api.cisco.com/security/advisories/cvrf/all&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again to Jason Smith for this solution!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:10:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/3563484#M229</guid>
      <dc:creator>lukas.leung</dc:creator>
      <dc:date>2017-08-16T15:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/4161582#M760</link>
      <description>&lt;P&gt;I did followed the process but there is no option edit the postman header values and error persist.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 13:53:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/4161582#M760</guid>
      <dc:creator>pankaj.kakade</dc:creator>
      <dc:date>2020-10-05T13:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/4293290#M793</link>
      <description>&lt;P&gt;I deleted previously created applications and re-created it and was able to get token. thanks folks!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 20:26:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/4293290#M793</guid>
      <dc:creator>JosiahSolomon11658</dc:creator>
      <dc:date>2021-02-17T20:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/4755979#M936</link>
      <description>&lt;P&gt;I have done the above steps, getting the token, but still getting the error not authorized&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="georgekocheril_0-1673959480662.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/173585iAA0F1A1CE6ED937B/image-size/large?v=v2&amp;amp;px=999" role="button" title="georgekocheril_0-1673959480662.png" alt="georgekocheril_0-1673959480662.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 12:45:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/4755979#M936</guid>
      <dc:creator>george.kocheril</dc:creator>
      <dc:date>2023-01-17T12:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cisco PSIRT openVuln API oauth2 Token "Not Authorized"</title>
      <link>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/5108019#M1114</link>
      <description>&lt;P&gt;just as a hint for guys coming 7 years late like me - the URL has been changed&lt;/P&gt;
&lt;P&gt;&lt;A href="https://id.cisco.com/oauth2/default/v1/token" target="_blank" rel="noopener"&gt;https://id.cisco.com/oauth2/default/v1/token&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;P&gt;&lt;A href="https://apix.cisco.com/security/advisories/v2" target="_blank" rel="noopener"&gt;https://apix.cisco.com/security/advisories/v2&lt;/A&gt;&amp;nbsp;for advisories&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 15:20:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/cisco-psirt-openvuln-api-oauth2-token-quot-not-authorized-quot/m-p/5108019#M1114</guid>
      <dc:creator>r.heitmann</dc:creator>
      <dc:date>2024-05-17T15:20:41Z</dc:date>
    </item>
  </channel>
</rss>

