<?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: Web API login error in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138309#M6551</link>
    <description>&lt;P&gt;Oh sorry, it's the management API.&lt;/P&gt;&lt;P&gt;Objective is to have a page built to query the logs, but first I need to get the login session ID.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jan 2022 17:44:59 GMT</pubDate>
    <dc:creator>jt-jt</dc:creator>
    <dc:date>2022-01-12T17:44:59Z</dc:date>
    <item>
      <title>Web API login error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138287#M6549</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Looking for a bit of help here please.&lt;/P&gt;&lt;P&gt;I am looking to make use of the web API call (currently trying to run tests using postman) so the first call is to login and obtain the session ID.&lt;/P&gt;&lt;P&gt;We had already enabled the IP access on the API to:&lt;/P&gt;&lt;P&gt;Accessibility:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Require all granted&lt;/P&gt;&lt;P&gt;It was previously just returning the login page HTML (ref here:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Enabling-web-api/td-p/32641" target="_blank" rel="noopener"&gt;Solved: Enabling web api - Check Point CheckMates&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Am I missing something on why making the /login call will return the following?&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"code"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"err_login_failed"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"Authentication&amp;nbsp;to&amp;nbsp;server&amp;nbsp;failed."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The login I am using does have adminRole so should be ok?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Please advise.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Many thanks in advance.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jan 2022 14:25:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138287#M6549</guid>
      <dc:creator>jt-jt</dc:creator>
      <dc:date>2022-01-12T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Web API login error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138303#M6550</link>
      <description>&lt;P&gt;Which API are you trying to reach? Management, Gaia? Anything else?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 17:12:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138303#M6550</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2022-01-12T17:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Web API login error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138309#M6551</link>
      <description>&lt;P&gt;Oh sorry, it's the management API.&lt;/P&gt;&lt;P&gt;Objective is to have a page built to query the logs, but first I need to get the login session ID.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 17:44:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138309#M6551</guid>
      <dc:creator>jt-jt</dc:creator>
      <dc:date>2022-01-12T17:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Web API login error</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138314#M6552</link>
      <description>&lt;P&gt;For that, you should authenticate as SmartConsole admin, not a local Gaia admin. Also, make sure MGMT API client IP is allowed.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 21:07:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-login-error/m-p/138314#M6552</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2022-01-12T21:07:02Z</dc:date>
    </item>
  </channel>
</rss>

