<?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 Access tokens not working in ExtremeCloud IQ Developer Community</title>
    <link>https://community.extremenetworks.com/t5/extremecloud-iq-developer/access-tokens-not-working/m-p/69305#M11</link>
    <description>Hello everyone, I'm switching to the new API and I'm having trouble getting the authorization/Authentication token to work. I'm currently using the Access token provided by the XIQ dashboard, like it was on the old API, but now I keep getting the 'JWT strings must contain exactly 2 period characters. Found: 0' error everytime I try calling the auth/apitoken endpoint to get the API Token. I noticed the token I'm supposed to have should be a three part one, but couldn't generate one on the dashboard and also couldn't find a good example/explanation on how to proper use/generate it. Does anyone know how to properly get the access/authorization token or have a guide I can follow?&lt;BR /&gt;&lt;BR /&gt;Any help is welcome, thanks</description>
    <pubDate>Wed, 05 Jan 2022 17:09:07 GMT</pubDate>
    <dc:creator>gabrielb</dc:creator>
    <dc:date>2022-01-05T17:09:07Z</dc:date>
    <item>
      <title>Access tokens not working</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-developer/access-tokens-not-working/m-p/69305#M11</link>
      <description>Hello everyone, I'm switching to the new API and I'm having trouble getting the authorization/Authentication token to work. I'm currently using the Access token provided by the XIQ dashboard, like it was on the old API, but now I keep getting the 'JWT strings must contain exactly 2 period characters. Found: 0' error everytime I try calling the auth/apitoken endpoint to get the API Token. I noticed the token I'm supposed to have should be a three part one, but couldn't generate one on the dashboard and also couldn't find a good example/explanation on how to proper use/generate it. Does anyone know how to properly get the access/authorization token or have a guide I can follow?&lt;BR /&gt;&lt;BR /&gt;Any help is welcome, thanks</description>
      <pubDate>Wed, 05 Jan 2022 17:09:07 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-developer/access-tokens-not-working/m-p/69305#M11</guid>
      <dc:creator>gabrielb</dc:creator>
      <dc:date>2022-01-05T17:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Access tokens not working</title>
      <link>https://community.extremenetworks.com/t5/extremecloud-iq-developer/access-tokens-not-working/m-p/69306#M12</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="7a4cf149-2c62-4bc3-aef2-4b9f86074d74" data-tag-text="@gabriel baima" href="https://community.extremenetworks.com/network/members/profile?UserKey=7a4cf149-2c62-4bc3-aef2-4b9f86074d74" data-itemmentionkey="6d22bd2b-6a08-4e51-9025-b93075300987"&gt;@gabriel baima&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;The token you got from XIQ Global Setting page is for old API only. To get the access token for the new API, you can call the end point "/login" on https://api.extremecloudiq.com. Once you get the access code, you use it as part of the Bearer Authorization header when calling other API endpoints. The following are examples.&lt;BR /&gt;&lt;BR /&gt;Login to get the access code:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;curl -X POST "https://api.extremecloudiq.com/login" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"username\":\"${USERNAME}\",\"password\":\"${PASSWORD}\"}"&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;List the admin users with the access code:&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;curl -X GET "https://api.extremecloudiq.com/users?page=1&amp;amp;limit=10" -H "accept: application/json" -H "Authorization: Bearer ${ACCESS_CODE}"&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;You can test the New API on the following Swagger site directly.&lt;BR /&gt;&lt;BR /&gt;https://api.extremecloudiq.com/swagger-ui/index.html?configUrl=/openapi/swagger-config#/&lt;BR /&gt;&lt;BR /&gt;References:&lt;BR /&gt;&lt;BR /&gt;https://extremecloudiq.com/api-docs/api-docs.html#_authentication&lt;BR /&gt;https://developer.extremecloudiq.com/​</description>
      <pubDate>Thu, 06 Jan 2022 10:09:42 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremecloud-iq-developer/access-tokens-not-working/m-p/69306#M12</guid>
      <dc:creator>Paul_Wang</dc:creator>
      <dc:date>2022-01-06T10:09:42Z</dc:date>
    </item>
  </channel>
</rss>

