Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Sigbjorn
Advisor
Advisor
Jump to solution

Infinity Portal API - Authentication issue

Hi,

In the past, I've automated everything from management to gateway deployments, but for some reason the cloud native infiniti portal beats me.

I'm trying to do something as simple as querying the MSSP usage reports, but can't get past the authentication. 

The first bit worked as expected from the (very little) documentation i found.

I create an API key in our top level MSSP account, and sent a post request to "https://cloudinfra-gw.portal.checkpoint.com/auth/external"

For the API key i used the service "Email & 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.)

This bit is ok, I get my expected bearer token in return.

Decoding the token, it looks proper to me.

{ "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 }

Next, I've tried to query different API's, in different fashions, but just can't make it work.

What I except to do:

Post a GET request to "https://cloudinfra-gw.portal.checkpoint.com/api/v1/tenant/usageReport?tenantId=<tenantId>&month=06&year=2024&isSummurized=false" with the Headers: { "Authorization": "Bearer eyJhbGciOiJSUzI1N..." }  

But whatever I try, I only get { "success": false, "message": "Authentication required", "forceLogout": true } in return.

Can anyone see what I'm missing out on here? Or point me to a more complete documentation with examples?

I've based this of the documentation found here; infinity-portal-api | 1.0.6 | Check-Point | SwaggerHub

0 Kudos
1 Solution

Accepted Solutions
Sigbjorn
Advisor
Advisor

Was added back quite quickly after i created the TAC.

So just to confirm, everything works as expected now that I have the proper service available.

View solution in original post

0 Kudos
3 Replies
Sigbjorn
Advisor
Advisor

Create a TAC case on the issue, and after a remote session and their dialog with R&D, they confirmed my suspicion about the service not being correct.

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..

0 Kudos
PhoneBoy
Admin
Admin

Hopefully we'll get it added back soon. 

0 Kudos
Sigbjorn
Advisor
Advisor

Was added back quite quickly after i created the TAC.

So just to confirm, everything works as expected now that I have the proper service available.

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events