<?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: Unable to get authorization token in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4130926#M732</link>
    <description>&lt;P&gt;Worked for me also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I registered a new app and selected only "Client Credentials" as a Grant Type.&lt;/P&gt;&lt;P&gt;After that I was able to get an access token with POST request to this URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.cisco.com/" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=&amp;lt;key&amp;gt;&amp;amp;client_secret=&amp;lt;client_secret&lt;/A&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The reply was like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{
    "access_token": "&amp;lt;token&amp;gt;",
    "token_type": "Bearer",
    "expires_in": 3599
}&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Aug 2020 17:39:10 GMT</pubDate>
    <dc:creator>dmitriy.teslya</dc:creator>
    <dc:date>2020-08-05T17:39:10Z</dc:date>
    <item>
      <title>Unable to get authorization token</title>
      <link>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4128573#M724</link>
      <description>&lt;P class="p1"&gt;Hello,&lt;/P&gt;&lt;P class="p1"&gt;I'm trying to use&amp;nbsp;&lt;SPAN&gt;Cisco Support API for PSS, particularly EoX API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;I have successfully registered my app and use client_id and secret from here - &lt;A href="https://apiconsole.cisco.com/apps/myapps" target="_blank"&gt;&lt;SPAN class="s1"&gt;https://apiconsole.cisco.com/apps/myapps&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P class="p1"&gt;When I try to get an authorization code with this URL and POST method in Postman:&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;&lt;A href="https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;= e5z3kfdbr3srkqzvzb6n33wj&amp;amp;client_secret=&amp;lt;secret&amp;gt;&amp;amp;response_type=code&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;I get this response:&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
&amp;nbsp;&amp;nbsp;&amp;nbsp; "error_description": "Invalid client or client credentials.",
&amp;nbsp;&amp;nbsp;&amp;nbsp; "error": "invalid_client"
}&lt;/PRE&gt;&lt;P class="p1"&gt;I also tried GET method and this URL:&lt;/P&gt;&lt;P class="p3"&gt;&lt;SPAN class="s2"&gt;&lt;A href="https://cloudsso.cisco.com/as/authorization.oauth2?response_type=code&amp;amp;grant_type=client_credentials&amp;amp;client_id" target="_blank"&gt;https://cloudsso.cisco.com/as/authorization.oauth2?response_type=code&amp;amp;grant_type=client_credentials&amp;amp;client_id&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;= e5z3kfdbr3srkqzvzb6n33wj&amp;amp;client_secret=&amp;lt;secret&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;This returns &lt;STRONG&gt;400 - Unknown or invalid client_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Below is the screenshot from API Console.&lt;/P&gt;&lt;P class="p1"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-07-28 at 15.09.13.png" style="width: 662px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80593iE0CA380CC5180A22/image-dimensions/662x229?v=v2" width="662" height="229" role="button" title="Screenshot 2020-07-28 at 15.09.13.png" alt="Screenshot 2020-07-28 at 15.09.13.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P class="p2"&gt;Any advice would be appreciated.&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p2"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 09:20:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4128573#M724</guid>
      <dc:creator>dmitriy.teslya</dc:creator>
      <dc:date>2020-07-31T09:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get authorization token</title>
      <link>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4129799#M728</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having the same problem...&lt;/P&gt;</description>
      <pubDate>Mon, 03 Aug 2020 22:50:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4129799#M728</guid>
      <dc:creator>Javier Morales</dc:creator>
      <dc:date>2020-08-03T22:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get authorization token</title>
      <link>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4129840#M729</link>
      <description>&lt;P&gt;Have the same problem......&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200804095337.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80713i27D17B1FDA234121/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200804095337.png" alt="20200804095337.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20200804095416.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/80712iD4420F1B347C6E48/image-size/large?v=v2&amp;amp;px=999" role="button" title="20200804095416.png" alt="20200804095416.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 01:54:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4129840#M729</guid>
      <dc:creator>visxu</dc:creator>
      <dc:date>2020-08-04T01:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get authorization token</title>
      <link>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4129989#M730</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure why you selecting "client_credentials" option for the grant.&amp;nbsp;&lt;BR /&gt;I see you didn't get the "auth_code" from your Cisco SSO login, also you are not adding it in the headers for the URL used to request the token (&lt;STRONG&gt;&lt;A href="https://cloudsso.cisco.com/as/token.oauth2%C2%A0" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cloudsso.cisco.com/as/token.oauth2&amp;nbsp;&lt;/A&gt;&lt;/STRONG&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check this post (it might help), it shows the correct steps to get the token:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.cisco.com/t5/services-discussions/cisco-oauth-sso-get-user-information/m-p/3988113/highlight/true#M645" target="_blank"&gt;https://community.cisco.com/t5/services-discussions/cisco-oauth-sso-get-user-information/m-p/3988113/highlight/true#M645&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 09:25:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4129989#M730</guid>
      <dc:creator>hmubarak</dc:creator>
      <dc:date>2020-08-04T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get authorization token</title>
      <link>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4130155#M731</link>
      <description>I created a another new application and it works with the new id and secret. &lt;BR /&gt;In the second creation, I just choose only one Grant Type : "Client Credentials"</description>
      <pubDate>Tue, 04 Aug 2020 14:11:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4130155#M731</guid>
      <dc:creator>visxu</dc:creator>
      <dc:date>2020-08-04T14:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get authorization token</title>
      <link>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4130926#M732</link>
      <description>&lt;P&gt;Worked for me also.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I registered a new app and selected only "Client Credentials" as a Grant Type.&lt;/P&gt;&lt;P&gt;After that I was able to get an access token with POST request to this URL:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://community.cisco.com/" target="_blank"&gt;https://cloudsso.cisco.com/as/token.oauth2?grant_type=client_credentials&amp;amp;client_id=&amp;lt;key&amp;gt;&amp;amp;client_secret=&amp;lt;client_secret&lt;/A&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The reply was like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{
    "access_token": "&amp;lt;token&amp;gt;",
    "token_type": "Bearer",
    "expires_in": 3599
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 17:39:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/unable-to-get-authorization-token/m-p/4130926#M732</guid>
      <dc:creator>dmitriy.teslya</dc:creator>
      <dc:date>2020-08-05T17:39:10Z</dc:date>
    </item>
  </channel>
</rss>

