<?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 Infinity Portal API - Authentication issue in Portal</title>
    <link>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/219353#M351</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the past, I've automated everything from management to gateway deployments, but for some reason the cloud native infiniti portal beats me.&lt;/P&gt;
&lt;P&gt;I'm trying to do something as simple as querying the MSSP usage reports, but can't get past the authentication.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first bit worked as expected from the (very little) documentation i found.&lt;/P&gt;
&lt;P&gt;I create an API key in our top level MSSP account, and sent a post request to "&lt;A href="https://cloudinfra-gw.portal.checkpoint.com/auth/external" target="_blank" rel="noopener"&gt;https://cloudinfra-gw.portal.checkpoint.com/auth/external&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;For the API key i used the service "Email &amp;amp; Collaboration" which is the service we're mainly utilizing. I couldn't seem to find a better general service for the Infiniti API's. (So this might be my main issue.)&lt;/P&gt;
&lt;P&gt;This bit is ok, I get my expected bearer token in return.&lt;/P&gt;
&lt;P&gt;Decoding the token, it looks proper to me.&lt;/P&gt;
&lt;P&gt;{ "alg": "RS256", "typ": "JWT" }.{ "tenantId": "---", "csrf": "---", "sessionId": "----", "clientId": "---", "description": "AutoLicense", "appId": "12345678-3333-1234-1234-123456789123", "role": "Admin", "roles": [], "scope": null, "issuedBy": null, "authType": "EXTERNAL", "cookieVersion": "7", "iat": 1719898994, "exp": 1719900794 }&lt;/P&gt;
&lt;P&gt;Next, I've tried to query different API's, in different fashions, but just can't make it work.&lt;/P&gt;
&lt;P&gt;What I except to do:&lt;/P&gt;
&lt;P&gt;Post a GET request to "&lt;A href="https://cloudinfra-gw.portal.checkpoint.com/api/v1/tenant/usageReport?tenantId=" target="_blank" rel="noopener"&gt;https://cloudinfra-gw.portal.checkpoint.com/api/v1/tenant/usageReport?tenantId=&lt;/A&gt;&amp;lt;tenantId&amp;gt;&amp;amp;month=06&amp;amp;year=2024&amp;amp;isSummurized=false"&amp;nbsp;with the Headers:&amp;nbsp;{ "Authorization": "Bearer eyJhbGciOiJSUzI1N..." }&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But whatever I try, I only get&amp;nbsp;{ "success": false, "message": "Authentication required", "forceLogout": true } in return.&lt;/P&gt;
&lt;P&gt;Can anyone see what I'm missing out on here? Or point me to a more complete documentation with examples?&lt;/P&gt;
&lt;P&gt;I've based this of the documentation found here;&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis-docs/Check-Point/infinity-portal-api/1.0.6#/" target="_blank" rel="noopener"&gt;infinity-portal-api | 1.0.6 | Check-Point | SwaggerHub&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 12:30:50 GMT</pubDate>
    <dc:creator>Sigbjorn</dc:creator>
    <dc:date>2024-07-03T12:30:50Z</dc:date>
    <item>
      <title>Infinity Portal API - Authentication issue</title>
      <link>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/219353#M351</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;In the past, I've automated everything from management to gateway deployments, but for some reason the cloud native infiniti portal beats me.&lt;/P&gt;
&lt;P&gt;I'm trying to do something as simple as querying the MSSP usage reports, but can't get past the authentication.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first bit worked as expected from the (very little) documentation i found.&lt;/P&gt;
&lt;P&gt;I create an API key in our top level MSSP account, and sent a post request to "&lt;A href="https://cloudinfra-gw.portal.checkpoint.com/auth/external" target="_blank" rel="noopener"&gt;https://cloudinfra-gw.portal.checkpoint.com/auth/external&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;For the API key i used the service "Email &amp;amp; Collaboration" which is the service we're mainly utilizing. I couldn't seem to find a better general service for the Infiniti API's. (So this might be my main issue.)&lt;/P&gt;
&lt;P&gt;This bit is ok, I get my expected bearer token in return.&lt;/P&gt;
&lt;P&gt;Decoding the token, it looks proper to me.&lt;/P&gt;
&lt;P&gt;{ "alg": "RS256", "typ": "JWT" }.{ "tenantId": "---", "csrf": "---", "sessionId": "----", "clientId": "---", "description": "AutoLicense", "appId": "12345678-3333-1234-1234-123456789123", "role": "Admin", "roles": [], "scope": null, "issuedBy": null, "authType": "EXTERNAL", "cookieVersion": "7", "iat": 1719898994, "exp": 1719900794 }&lt;/P&gt;
&lt;P&gt;Next, I've tried to query different API's, in different fashions, but just can't make it work.&lt;/P&gt;
&lt;P&gt;What I except to do:&lt;/P&gt;
&lt;P&gt;Post a GET request to "&lt;A href="https://cloudinfra-gw.portal.checkpoint.com/api/v1/tenant/usageReport?tenantId=" target="_blank" rel="noopener"&gt;https://cloudinfra-gw.portal.checkpoint.com/api/v1/tenant/usageReport?tenantId=&lt;/A&gt;&amp;lt;tenantId&amp;gt;&amp;amp;month=06&amp;amp;year=2024&amp;amp;isSummurized=false"&amp;nbsp;with the Headers:&amp;nbsp;{ "Authorization": "Bearer eyJhbGciOiJSUzI1N..." }&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But whatever I try, I only get&amp;nbsp;{ "success": false, "message": "Authentication required", "forceLogout": true } in return.&lt;/P&gt;
&lt;P&gt;Can anyone see what I'm missing out on here? Or point me to a more complete documentation with examples?&lt;/P&gt;
&lt;P&gt;I've based this of the documentation found here;&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis-docs/Check-Point/infinity-portal-api/1.0.6#/" target="_blank" rel="noopener"&gt;infinity-portal-api | 1.0.6 | Check-Point | SwaggerHub&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 12:30:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/219353#M351</guid>
      <dc:creator>Sigbjorn</dc:creator>
      <dc:date>2024-07-03T12:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Portal API - Authentication issue</title>
      <link>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/219769#M352</link>
      <description>&lt;P&gt;Create a TAC case on the issue, and after a remote session and their dialog with R&amp;amp;D, they confirmed my suspicion about the service not being correct.&lt;/P&gt;
&lt;P&gt;To access the API's I want, you need to create an API key for the service "Infitity portal" - However, this service was removed from the list, and they said they are now working on adding it back again..&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 10:22:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/219769#M352</guid>
      <dc:creator>Sigbjorn</dc:creator>
      <dc:date>2024-07-05T10:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Portal API - Authentication issue</title>
      <link>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/219937#M353</link>
      <description>&lt;P&gt;Hopefully we'll get it added back soon.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 13:58:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/219937#M353</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-07-08T13:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Infinity Portal API - Authentication issue</title>
      <link>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/222103#M356</link>
      <description>&lt;P&gt;Was added back quite quickly after i created the TAC.&lt;/P&gt;
&lt;P&gt;So just to confirm, everything works as expected now that I have the proper service available.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:36:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Portal/Infinity-Portal-API-Authentication-issue/m-p/222103#M356</guid>
      <dc:creator>Sigbjorn</dc:creator>
      <dc:date>2024-07-29T10:36:04Z</dc:date>
    </item>
  </channel>
</rss>

