<?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 Re: 404 Error Retrieving Token in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/404-error-retrieving-token/m-p/3483464#M118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, your url that you are using is correct. Have you tried to retrieve the token using postman? Postman can auto generate a curl request based on getting the access token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside postman you can do a post request with the following url and input your client id and secret.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=pzvxpfgn7j5kdsb8pk2eyx2c&amp;amp;client_secret=n2gaX3eCVEAmGpTJcS3d2UUs" title="https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=pzvxpfgn7j5kdsb8pk2eyx2c&amp;amp;client_secret=n2gaX3eCVEAmGpTJcS3d2UUs"&gt;https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=yourclientid&amp;amp;client_secret=yourclientsecret&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also do a get request inside of postman using a url of an advisory and use Oauth 2 as the authentication as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bradley Korabik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 17:31:35 GMT</pubDate>
    <dc:creator>bkorabik</dc:creator>
    <dc:date>2016-08-11T17:31:35Z</dc:date>
    <item>
      <title>404 Error Retrieving Token</title>
      <link>https://community.cisco.com/t5/services-discussions/404-error-retrieving-token/m-p/3483463#M117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;I've registered a new application and am setting up the auth.&amp;nbsp; The documentation says to retrieve the token from "&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;SPAN&gt;".&amp;nbsp; The example given in the documentation is below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -s -k -H "Content-Type: application/x-www-form-urlencoded" -X POST -d "client_id=&amp;lt;OAuth-Client-ID&amp;gt;" -d "client_secret=&amp;lt;OAuth-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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When attempting this with curl (using our own client ID and client secret) to the above URL, we get a 404 page not found error.&amp;nbsp; Is this caused by an error in the token retrieval, or is the page actually missing?&amp;nbsp; Is there a different/new URL we should use?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 13:49:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/404-error-retrieving-token/m-p/3483463#M117</guid>
      <dc:creator>rob.macbride</dc:creator>
      <dc:date>2016-08-10T13:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: 404 Error Retrieving Token</title>
      <link>https://community.cisco.com/t5/services-discussions/404-error-retrieving-token/m-p/3483464#M118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, your url that you are using is correct. Have you tried to retrieve the token using postman? Postman can auto generate a curl request based on getting the access token.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside postman you can do a post request with the following url and input your client id and secret.&lt;/P&gt;&lt;P&gt;&lt;A href="https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=pzvxpfgn7j5kdsb8pk2eyx2c&amp;amp;client_secret=n2gaX3eCVEAmGpTJcS3d2UUs" title="https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=pzvxpfgn7j5kdsb8pk2eyx2c&amp;amp;client_secret=n2gaX3eCVEAmGpTJcS3d2UUs"&gt;https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=yourclientid&amp;amp;client_secret=yourclientsecret&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also do a get request inside of postman using a url of an advisory and use Oauth 2 as the authentication as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bradley Korabik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 17:31:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/404-error-retrieving-token/m-p/3483464#M118</guid>
      <dc:creator>bkorabik</dc:creator>
      <dc:date>2016-08-11T17:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: 404 Error Retrieving Token</title>
      <link>https://community.cisco.com/t5/services-discussions/404-error-retrieving-token/m-p/3483465#M119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the issue was caused by having the app set to "authorization code", instead of "client credentials".&amp;nbsp; It's not the error I would have expected but changing to client credentials corrected the issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 19:20:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/404-error-retrieving-token/m-p/3483465#M119</guid>
      <dc:creator>rob.macbride</dc:creator>
      <dc:date>2016-08-15T19:20:38Z</dc:date>
    </item>
  </channel>
</rss>

