- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-23-2025 12:06 AM
Hi All,
Trying to create a JWT token using the instructions on:
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000004MQyCAM&lang=en_US
Basically I'm calling
{"message":"invalid_credentials"}
But this error seems to indicate a different(?) problem, and I can't find anything regarding it...
Thanks for any help.
04-23-2025 07:47 AM
Hello!
This may be a trusted IP login issue.
Please see below documentation for reference.
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000HExNCAW
Refer to Prisma Cloud documentation for a list of NAT Gateway IP Addresses for Prisma Cloud; adding the Ingress address of appropriate tenant to the Trusted Login IP Addresses list allows the API call to /api/v1/authenticate to be processed as expected.
Please keep us posted.
04-23-2025 05:55 AM
Hello!
Are you using the SaaS version of Prisma Cloud? Check your app stack . . . you shoudl be using api2, or api3, or api4 as apposed to just api.
So, you are using "a previously created API Key using code that has worked before. . . but using other credentials". Double check the key and ensure that it has not expired, and that it's role and permission group allow it to do what you need it to do.
Hope this helps!
04-23-2025 06:05 AM
Thanks for your comments.
I think the URL I'm using is correct (api2, to be precise, based on the URL of the Prisma UI).
I will double-check permissions etc., but my gut feeling is that the "src" bit is the key here, and it seems to indicate that it's not a simple permissions error...
Again - Thanks!
04-23-2025 07:47 AM
Hello!
This may be a trusted IP login issue.
Please see below documentation for reference.
https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u000000HExNCAW
Refer to Prisma Cloud documentation for a list of NAT Gateway IP Addresses for Prisma Cloud; adding the Ingress address of appropriate tenant to the Trusted Login IP Addresses list allows the API call to /api/v1/authenticate to be processed as expected.
Please keep us posted.
04-23-2025 10:38 PM
Thanks!
Marking this as a solution based on the documentation. Will try this and update ASAP.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!