<?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 HTTP X-Auth-Token versus HTTP Authorization in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/http-x-auth-token-versus-http-authorization/m-p/5299258#M8553</link>
    <description>&lt;P&gt;Hello, everyone.&lt;/P&gt;
&lt;P&gt;I am early into automation for my ENCOR 350-401 exam and I have a question.&lt;/P&gt;
&lt;P&gt;When we work with HTTP/HTTPs when making REST API calls, the&amp;nbsp;&lt;STRONG&gt;Authorization&amp;nbsp;&lt;/STRONG&gt;header is used to provide authentication parameters such as username/password.&lt;/P&gt;
&lt;P&gt;When sending API calls to Cisco Catalyst Center in the Devnet Sandbox, you must first pass in credentials that will generate a token. You then use this token to authenticate yourself for any further requests.&lt;/P&gt;
&lt;P&gt;When providing the token, why can't I just use the&amp;nbsp;&lt;STRONG&gt;Authorization&amp;nbsp;&lt;/STRONG&gt;header and insert the token there?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mitrixsen_0-1749898918017.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/246480i8B43C355B817B5A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mitrixsen_0-1749898918017.png" alt="Mitrixsen_0-1749898918017.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Why is&amp;nbsp;&lt;STRONG&gt;X-Auth-Token&amp;nbsp;&lt;/STRONG&gt;necessary instead? How does the operation differ? Why does one work but not the other one?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mitrixsen_1-1749898985030.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/246481iF4264799D89EC1BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mitrixsen_1-1749898985030.png" alt="Mitrixsen_1-1749898985030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Sat, 14 Jun 2025 11:03:46 GMT</pubDate>
    <dc:creator>Mitrixsen</dc:creator>
    <dc:date>2025-06-14T11:03:46Z</dc:date>
    <item>
      <title>HTTP X-Auth-Token versus HTTP Authorization</title>
      <link>https://community.cisco.com/t5/network-platform-api/http-x-auth-token-versus-http-authorization/m-p/5299258#M8553</link>
      <description>&lt;P&gt;Hello, everyone.&lt;/P&gt;
&lt;P&gt;I am early into automation for my ENCOR 350-401 exam and I have a question.&lt;/P&gt;
&lt;P&gt;When we work with HTTP/HTTPs when making REST API calls, the&amp;nbsp;&lt;STRONG&gt;Authorization&amp;nbsp;&lt;/STRONG&gt;header is used to provide authentication parameters such as username/password.&lt;/P&gt;
&lt;P&gt;When sending API calls to Cisco Catalyst Center in the Devnet Sandbox, you must first pass in credentials that will generate a token. You then use this token to authenticate yourself for any further requests.&lt;/P&gt;
&lt;P&gt;When providing the token, why can't I just use the&amp;nbsp;&lt;STRONG&gt;Authorization&amp;nbsp;&lt;/STRONG&gt;header and insert the token there?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mitrixsen_0-1749898918017.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/246480i8B43C355B817B5A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mitrixsen_0-1749898918017.png" alt="Mitrixsen_0-1749898918017.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Why is&amp;nbsp;&lt;STRONG&gt;X-Auth-Token&amp;nbsp;&lt;/STRONG&gt;necessary instead? How does the operation differ? Why does one work but not the other one?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mitrixsen_1-1749898985030.png" style="width: 999px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/246481iF4264799D89EC1BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Mitrixsen_1-1749898985030.png" alt="Mitrixsen_1-1749898985030.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jun 2025 11:03:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/http-x-auth-token-versus-http-authorization/m-p/5299258#M8553</guid>
      <dc:creator>Mitrixsen</dc:creator>
      <dc:date>2025-06-14T11:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: HTTP X-Auth-Token versus HTTP Authorization</title>
      <link>https://community.cisco.com/t5/network-platform-api/http-x-auth-token-versus-http-authorization/m-p/5299266#M8554</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/1297969"&gt;@Mitrixsen&lt;/a&gt;&amp;nbsp;&lt;SPAN&gt;design choice for this API. Many APIs use the standard auth bear way&lt;/SPAN&gt;&lt;SPAN&gt;, but you still find many enterprise systems using custom headers like this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you did put the same token in the auth header instead, the servers authentication code just opts to ignores it, as its not checking that header location for tokens and the middleware does not even look at auth header during its token validation process.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jun 2025 12:17:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/http-x-auth-token-versus-http-authorization/m-p/5299266#M8554</guid>
      <dc:creator>bigevilbeard</dc:creator>
      <dc:date>2025-06-14T12:17:15Z</dc:date>
    </item>
  </channel>
</rss>

