<?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: FMC CURL generatetoken error in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/fmc-curl-generatetoken-error/m-p/5294029#M583</link>
    <description>&lt;P&gt;You mostly likey problem is you are using the wrong authentication method,&amp;nbsp;&lt;A href="https://www.cisco.com/c/en/us/support/docs/security/firepower-management-center/215918-how-to-generate-authentication-token-for.html" target="_blank"&gt;https://www.cisco.com/c/en/us/support/docs/security/firepower-management-center/215918-how-to-generate-authentication-token-for.html&lt;/A&gt;&amp;nbsp;- unless this has changed since this document. From the doc, FMC API expects Basic Authentication (username:password encoded in Base64) rather than a JSON payload.&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -X POST --header 'Authorization: [insert here]' 'https://&amp;lt;ip_address&amp;gt;/api/fmc_platform/v1/auth/generatetoken'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 09:37:10 GMT</pubDate>
    <dc:creator>bigevilbeard</dc:creator>
    <dc:date>2025-05-27T09:37:10Z</dc:date>
    <item>
      <title>FMC CURL generatetoken error</title>
      <link>https://community.cisco.com/t5/network-security/fmc-curl-generatetoken-error/m-p/5293890#M582</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
&lt;P&gt;I'm trying to generate a token and I'm getting the following error message.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;curl -k -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"grant_type": "password","username": "api", "password": "password"}' 'https://&amp;lt;ip_address&amp;gt;/api/fmc_platform/v1/auth/generatetoken'&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;{"error":{"category":"FRAMEWORK","messages":[{"description":"User authentication failed."}],"severity":"ERROR"}}&lt;STRONG&gt;%&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Does somebody know how can I fix this?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 May 2025 18:51:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/fmc-curl-generatetoken-error/m-p/5293890#M582</guid>
      <dc:creator>Jewgeni Uschegow</dc:creator>
      <dc:date>2025-05-26T18:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: FMC CURL generatetoken error</title>
      <link>https://community.cisco.com/t5/network-security/fmc-curl-generatetoken-error/m-p/5294029#M583</link>
      <description>&lt;P&gt;You mostly likey problem is you are using the wrong authentication method,&amp;nbsp;&lt;A href="https://www.cisco.com/c/en/us/support/docs/security/firepower-management-center/215918-how-to-generate-authentication-token-for.html" target="_blank"&gt;https://www.cisco.com/c/en/us/support/docs/security/firepower-management-center/215918-how-to-generate-authentication-token-for.html&lt;/A&gt;&amp;nbsp;- unless this has changed since this document. From the doc, FMC API expects Basic Authentication (username:password encoded in Base64) rather than a JSON payload.&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k -X POST --header 'Authorization: [insert here]' 'https://&amp;lt;ip_address&amp;gt;/api/fmc_platform/v1/auth/generatetoken'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 09:37:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/fmc-curl-generatetoken-error/m-p/5294029#M583</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-05-27T09:37:10Z</dc:date>
    </item>
  </channel>
</rss>

