<?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 ID token in Webex for Developers</title>
    <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4811138#M2053</link>
    <description>&lt;P&gt;The request sent is URL encoded but getting an above error. Not sure what is wrong?&lt;/P&gt;</description>
    <pubDate>Mon, 10 Apr 2023 11:59:42 GMT</pubDate>
    <dc:creator>hemisuser1</dc:creator>
    <dc:date>2023-04-10T11:59:42Z</dc:date>
    <item>
      <title>Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801790#M2016</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;While Generating ID-tokens with WebEx integration I am getting the following error for the token endpoint request:&lt;/P&gt;&lt;P&gt;The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the response unable to understand which filed is missing or malformed, any help on this will be highly appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 08:39:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801790#M2016</guid>
      <dc:creator>hemisuser1</dc:creator>
      <dc:date>2023-03-27T08:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801798#M2017</link>
      <description>&lt;P&gt;Can you share your request (obfuscating your token)?&lt;/P&gt;
&lt;P&gt;Or you can share your Tracking ID with devsupport, they may look into the issue using that id&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 08:50:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801798#M2017</guid>
      <dc:creator>dtibbe</dc:creator>
      <dc:date>2023-03-27T08:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801835#M2018</link>
      <description>&lt;P&gt;Following are the details of the request:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://idbroker.webex.com/idb/oauth2/v1/access_token" target="_blank" rel="noopener"&gt;https://idbroker.webex.com/idb/oauth2/v1/access_token&lt;/A&gt;&lt;BR /&gt;Authorization: Basic QzFhNmQ1NjU1MWxxxxxxxxxxxxxxxxxxxxxTUxYTM1OGVhMg==&lt;/P&gt;
&lt;P&gt;grant_type=authorization_code&amp;amp;code=MjZjNjZkYTctYTc1ZS00OGRkLTgwMxxxxxxxx460f-b134-dd9f31b56890&amp;amp;redirect_uri=&amp;lt;redirect_url&amp;gt;&amp;amp;client_id=&amp;lt;client_id&amp;gt;&amp;amp;code_verifier=CgIio9sobjR6cK30UamH4CuRqfKTa4qf6tc2rSxDVk8&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 11:56:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801835#M2018</guid>
      <dc:creator>hemisuser1</dc:creator>
      <dc:date>2023-03-27T11:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801840#M2019</link>
      <description>&lt;P&gt;Please remove the basic auth sample!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/610582"&gt;@Jeff Marshall&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 09:56:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801840#M2019</guid>
      <dc:creator>dtibbe</dc:creator>
      <dc:date>2023-03-27T09:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801875#M2020</link>
      <description>&lt;P&gt;Changing auth type to post_secret, changed error to&amp;nbsp; {"error":"invalid_grant","error_description":"The provided access grant is invalid, expired, or revoked.","trackingID":"NA_4f91c72c-4f4e-4832-a09d-94db99c3f232"}&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 10:36:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801875#M2020</guid>
      <dc:creator>hemisuser1</dc:creator>
      <dc:date>2023-03-27T10:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801926#M2021</link>
      <description>&lt;P&gt;That error indicates that the auth code you're trying to use has already been used or is in some way not valid. The Auth code is one-time use and is only valid for a few minutes. If you're trying to use the same one then you'll need to generate a new one and then attempt to exchange it for your access token.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 12:06:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4801926#M2021</guid>
      <dc:creator>Jeff Marshall</dc:creator>
      <dc:date>2023-03-27T12:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4802427#M2025</link>
      <description>&lt;P&gt;Using the code one time only so not sure why the error. JFYI I am using a free trial Webex account is that causing these issues?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 05:04:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4802427#M2025</guid>
      <dc:creator>hemisuser1</dc:creator>
      <dc:date>2023-03-28T05:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4802856#M2030</link>
      <description>&lt;P&gt;Then possibly it's how you're making the request. The parameters should all be sent in the body of the request with content-type:&lt;SPAN&gt;application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;BR /&gt;This is a screenshot of what a request would look like in Postman. &lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Screenshot 2023-03-28 at 11.18.48 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/180345i35744BD765FE8E0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-03-28 at 11.18.48 AM.png" alt="Screenshot 2023-03-28 at 11.18.48 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 15:22:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4802856#M2030</guid>
      <dc:creator>Jeff Marshall</dc:creator>
      <dc:date>2023-03-28T15:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4803144#M2031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1480160"&gt;@hemisuser1&lt;/a&gt;,&lt;BR /&gt;Thanks for sharing the details here.&lt;BR /&gt;Since I was going through the Error you're facing here i.e., "&lt;EM&gt;The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed.&lt;/EM&gt;" and after looking at your Request payload, I think I understand why it's throwing that error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general for this API Request, there are 5 query parameters which are crucial and those are -&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;client_id&lt;/LI&gt;
&lt;LI&gt;client_secret&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;grant_type&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;redirect_uri&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;code&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Now, in your Request payload - I can already find the most of the fields are matching, however I see you're using a parameter &lt;EM&gt;code_verifier&lt;BR /&gt;&lt;/EM&gt;I don't think this an acceptable parameter for this Request. The last one should be mentioned as &lt;EM&gt;client_secret&lt;/EM&gt;.&lt;BR /&gt;You can refer to the screen shot as Jeff has shared in his reply, since all these parameters need to be inserted following '&lt;EM&gt;Content-Type: application/x-www-form-urlencoded&lt;/EM&gt;' and this is crucial.&lt;BR /&gt;So, in plain text with curl format, your Request should be -&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;curl --location --request POST 'https://webexapis.com/v1/access_token' \

--header 'Content-Type: application/x-www-form-urlencoded' \

--data-urlencode 'grant_type=authorization_code' \

--data-urlencode 'client_id=&amp;lt;clientId&amp;gt;' \

--data-urlencode 'client_secret=&amp;lt;clientSecret&amp;gt;' \

--data-urlencode 'redirect_uri=&amp;lt;uri&amp;gt;' \

--data-urlencode 'code=&amp;lt;code&amp;gt;'&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;And, please note - you don't need any Token to run this API.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Just to share, if you feel that first generating the code from OAuth Authorization URL is hectic before running the actual API Request, here is a Blog we've posted very recently to generate token from Postman in very very simple few steps.&lt;BR /&gt;I hope this blog might help you here - &lt;A href="https://developer.webex.com/blog/generating-an-oauth-token-pair-using-a-webex-integration" target="_blank"&gt;https://developer.webex.com/blog/generating-an-oauth-token-pair-using-a-webex-integration&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;BR /&gt;Sandip&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 03:28:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4803144#M2031</guid>
      <dc:creator>sandiban</dc:creator>
      <dc:date>2023-03-29T03:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4811137#M2052</link>
      <description>&lt;P&gt;No luck even after removing the '&lt;EM&gt;code_verifier' paramater.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 11:58:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4811137#M2052</guid>
      <dc:creator>hemisuser1</dc:creator>
      <dc:date>2023-04-10T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4811138#M2053</link>
      <description>&lt;P&gt;The request sent is URL encoded but getting an above error. Not sure what is wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 11:59:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4811138#M2053</guid>
      <dc:creator>hemisuser1</dc:creator>
      <dc:date>2023-04-10T11:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4811762#M2063</link>
      <description>&lt;P&gt;Somehow managed to get the id token with WebEx. Now I am not getting the email claim in ID token even though passed scopes as "openid email". Did anyone face this issue? any configuration I am missing?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 09:42:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4811762#M2063</guid>
      <dc:creator>hemisuser1</dc:creator>
      <dc:date>2023-04-11T09:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4812102#M2064</link>
      <description>&lt;P&gt;If you're referring to the response from &lt;FONT face="courier new,courier"&gt;/v1/access_token&lt;/FONT&gt;, perhaps this note is relevant&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dstaudt_0-1681237404471.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/181524i91C645C4F8D06A15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dstaudt_0-1681237404471.png" alt="dstaudt_0-1681237404471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:24:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4812102#M2064</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-04-11T18:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to get ID token</title>
      <link>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4812103#M2065</link>
      <description>&lt;P&gt;This is working Node/Express sample might be helpful: &lt;A href="https://github.com/CiscoDevNet/webex-login-with-webex-sample" target="_blank"&gt;https://github.com/CiscoDevNet/webex-login-with-webex-sample&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:29:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/webex-for-developers/unable-to-get-id-token/m-p/4812103#M2065</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-04-11T18:29:01Z</dc:date>
    </item>
  </channel>
</rss>

