Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

What ConnectionJSON should I configure in REST Connector for Prisma Cloud Integration?

pahm
New Contributor III
New Contributor III

Hello,

We are working on integration with Prisma Cloud to manage Prisma account provisioning.

Its login API is a POST Form request with form fields of username and password, then it return a JWT token. Other API Calls will have to use the JWT Token in a specific custom Header such as:

x-token : jwtToken

Can you share a ConnectionJSON to get a JWT Token and use this token for CreateAccontJSON?

Thanks,

4 REPLIES 4

rushikeshvartak
All-Star
All-Star

Please share postman screenshot and curl command [Refer https://codingnconcepts.com/postman/how-to-generate-curl-command-from-postman/ ]



⚠️‼️‼️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.‼️‼️⚠️

 

refer  json samples 

https://docs.saviyntcloud.com/bundle/Dev-Handbook-REST-v24x/page/Content/Developers-Handbook.htm


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

pahm
New Contributor III
New Contributor III

Here is the screenshot for login and get the token from response. I am not sure what authType from Saviynt perspective: the body is JSON with username and password, the response contains token

pahm_0-1724377141767.png

 

You can use oauth2 

{
  "authentications": {
    "userAuth": {
      "authType": "oauth2",
      "url": "https://<domain name>/login",
      "httpMethod": "POST",
      "httpParams": {
        "username": "<Username>",
        "password": "<Password>"
      },
      "httpHeaders": {
        "contentType": "application/x-www-form-urlencoded"
      },
      "httpContentType": "application/x-www-form-urlencoded",
      "expiryError": "ExpiredAuthenticationToken",
      "authError": [
        "InvalidAuthenticationToken",
        "AuthenticationFailed",
        "FAILURE",
        "INVALID_SESSION_ID"
      ],
      "timeOutError": "Read timed out",
      "errorPath": "errors.type",
      "maxRefreshTryCount": 5,
      "tokenResponsePath": "token",
      "tokenType": "Bearer",
      "accessToken": "<access token>"
    }
  }
}

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

stalluri
Valued Contributor II
Valued Contributor II

Along with the JSON shared below, add your token to the header

"httpHeaders": {
        "x-token" : "jwtToken",
        "contentType": "application/x-www-form-urlencoded"
      },

 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.