<?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: ASA REST-API Authentication issues in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3989890#M30113</link>
    <description>&lt;P&gt;I had the same issue until I found the release notes, new header '&lt;SPAN&gt;User-Agent: REST API Agent'&amp;nbsp;&lt;/SPAN&gt;is required:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/security/asa/api/13/asa-api-rn-13.html#pgfId-142754" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/security/asa/api/13/asa-api-rn-13.html#pgfId-142754&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 00:10:43 GMT</pubDate>
    <dc:creator>sebastien_michelet</dc:creator>
    <dc:date>2019-11-27T00:10:43Z</dc:date>
    <item>
      <title>ASA REST-API Authentication issues</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3842541#M30033</link>
      <description>&lt;P&gt;Running ASA REST-API&amp;nbsp;1.3.2.325&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All API calls to this firewall are responding with the same message:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&amp;lt;FORM METHOD=POST autocomplete=new-password style=\"max-width:300px;margin:auto\"&amp;gt;&amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;Authorization Required&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;H2&amp;gt;&lt;STRONG&gt;Authorization Required!&lt;/STRONG&gt;&amp;lt;/H2&amp;gt;&amp;lt;label for=user&amp;gt;Username&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;&amp;lt;input id=user name=username type=text&amp;gt;&amp;lt;br&amp;gt;&amp;lt;label for=pass&amp;gt;Password&amp;lt;/label&amp;gt;&amp;lt;br&amp;gt;&amp;lt;input id=pass name=password type=password&amp;gt;&amp;lt;br&amp;gt;&amp;lt;INPUT TYPE=HIDDEN NAME=csrf_token VALUE=\"(removed)\"&amp;gt;\r\n&amp;lt;INPUT TYPE=submit VALUE=submit&amp;gt;\r\n&amp;lt;/FORM&amp;gt;\n\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has the authentication methods for the ASA API changed? I get the same response from the https://&amp;lt;asa-ip&amp;gt;/doc page when testing out API calls, too. POSTMAN too responds with this authentication problem... Whats the deal?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had been using Basic HTTP Auth for MONTHS now, and now these very standard calls get rejected due to Auth problems. Even the most simple GET ran from /doc/ page will fail with Auth issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can i troubleshoot this further? Literally not a single call works from https://&amp;lt;asa-ip&amp;gt;/doc, which is insane since i authenticate just to REACH that page, and its actually the ASA sending calls to itself.... Help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 16:39:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3842541#M30033</guid>
      <dc:creator>HungryDog100</dc:creator>
      <dc:date>2019-04-22T16:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API Authentication issues</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3842545#M30036</link>
      <description>&lt;P&gt;I have been working with the newest ver of REST-API and it has notes regarding changes to the Authorization methods... which is great... but what are the changes?!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H4&gt;New Features in ASA REST API 1.3(2)-346&lt;/H4&gt;&lt;P class="DD-DocumentDates"&gt;&lt;STRONG&gt;Released:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;February 28, 2019&lt;/P&gt;&lt;P class="pB1_Body1"&gt;ASA REST-API image 1.3.2-346 is a special patch which &lt;STRONG&gt;&lt;U&gt;provides key changes related to Authorization&lt;/U&gt;&lt;/STRONG&gt;, and addresses a few bugs.&lt;/P&gt;&lt;P class="pB1_Body1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="pB1_Body1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 16:45:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3842545#M30036</guid>
      <dc:creator>HungryDog100</dc:creator>
      <dc:date>2019-04-22T16:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API Authentication issues</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3842553#M30111</link>
      <description>&lt;P&gt;I've found my issue and corrected it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within a PDF titled "About the ASA REST API v1.3.2" (revised July 9 2018)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Under a section titled &lt;U&gt;"Token Authentication API"&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The REST API client needs to send a POST request to '/api/tokenservices' with user information in the basic authentication header to get a token for that user. Subsequently, the REST API client can use this token in an 'X-Auth-Token' request header for any subsequent REST API calls. The 'token' will be valid until either it is explicitly invalidated by a 'DELETE /api/tokenservices/&amp;lt;token&amp;gt;' request, using user information in the basic authentication header, or until the session times out.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;POST URL: /api/tokenservices&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Token will be sent back in the headers of the response, you need to grab the token and make new headers for your request like so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;headers = {&lt;SPAN&gt;'Content-Type'&lt;/SPAN&gt;: &lt;SPAN&gt;'application/json'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;BR /&gt;&lt;/SPAN&gt;           &lt;SPAN&gt;'X-Auth-Token'&lt;/SPAN&gt;: &lt;SPAN&gt;'12DDF5@XXXX@XXXX@ABCDEFGHIJKLMNOPQRSTUVWXYZ12343567890'&lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had been crafting API calls for my firewalls for months now, suddenly I need this API Token to make any API calls work. Incredibly poorly documented, hopefully my efforts will help others that get snagged on this complicated authentication method that is obscured by its own documentation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2019 17:07:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3842553#M30111</guid>
      <dc:creator>HungryDog100</dc:creator>
      <dc:date>2019-04-22T17:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: ASA REST-API Authentication issues</title>
      <link>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3989890#M30113</link>
      <description>&lt;P&gt;I had the same issue until I found the release notes, new header '&lt;SPAN&gt;User-Agent: REST API Agent'&amp;nbsp;&lt;/SPAN&gt;is required:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/security/asa/api/13/asa-api-rn-13.html#pgfId-142754" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/security/asa/api/13/asa-api-rn-13.html#pgfId-142754&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 00:10:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/asa-rest-api-authentication-issues/m-p/3989890#M30113</guid>
      <dc:creator>sebastien_michelet</dc:creator>
      <dc:date>2019-11-27T00:10:43Z</dc:date>
    </item>
  </channel>
</rss>

