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

Verity Connector Connection JSON issue

txvajrag
New Contributor III
New Contributor III

Hi,

We are trying to build verity connector using REST. The verity team has provided us the URL and the payload details to get the token, Below is the connection JSON , they claim it is JWT bearer token, however the beilif is it does oauth authentication. below is the Postman API

VerityConnect (getpostman.com)

below is connection JSON

{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://api.veritystream.cloud/services/oauth/api/authentication/jwt/validate",
"httpMethod": "POST",
"httpParams": {
"Requester": {
"Key": "XXXXXXX",
"Id": "XXXX",
"Secret": "XXXXXXX",
"Resource": "Verity Connect",
"Instance": ""
},
"Parameters": {}
},
"httpHeaders": {
"contentType": "application/json"
},
"expiryError": "ExpiredAuthenticationToken",
"retryFailureStatusCode": [
401,
400
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "Value",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}

 

below is the postman request

"Requester": {
"Key": "XXXXXXX",
"Id": "XXXX",
"Secret": "XXXXXXX",
"Resource": "Verity Connect",
"Instance": ""
},
"Parameters": {}
},

and the response is

{
    "Code": 1000,
    "Description": "",
    "Timestamp": "2024-06-19T20:33:56.6105091Z",
    "Value": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJVc2VySWQiOjE0MjQxLCJSZXNvdXJjZSI6IlZlcml0eSBDb25uZWN0IiwiZXhwIjoxNzE4OTE1NjM2LjB9.KwT50zYtfiLuuhWydrqiikMGtctevZZBjB9j8LjZPgm3ftMSODGKDIqG90SOtlqwMau18OQnhBGTo0awRi7tz-2KqhxVreLPr5Y6A8GGFUGtp2ylRkB56ip2NOWuxpjs1WfuQXKz_zkEVf7HjCrCjJmB5EmvAK54G3c1DBEy9cw"
}
12 REPLIES 12

Amit_Malik
Valued Contributor II
Valued Contributor II

Hi @txvajrag , what issue are you facing. Is Test connection not working ?

Thanks,

Amit

Kind Regards,
Amit Malik
If this helped you move forward, please click on the "Kudos" button.
If this answers your query, please select "Accept As Solution".

txvajrag
New Contributor III
New Contributor III

Test connection always shows successful. So when i try to run import its not able to get the token.

httpParams all double quote add backslash \”


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

JSON becomes invalid

{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://api.veritystream.cloud/services/oauth/api/authentication/jwt/validate",
"httpMethod": "POST",
"httpParams": "{\"Requester\":{\"Key\":\"XXXXXXX\",\"Id\":\"XXXX\",\"Secret\":\"XXXXXXX\",\"Resource\":\"Verity Connect\",\"Instance\":\"\"},\"Parameters\":{}}",
"httpHeaders": {
"contentType": "application/json"
},
"expiryError": "ExpiredAuthenticationToken",
"retryFailureStatusCode": [401, 400],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "Value",
"tokenType": "Bearer",
"accessToken": "Bearer abcd"
}
}
}


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

txvajrag_0-1719500201419.png

 

if you add wrong secret in postman what is HTTP error code ?


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

rushikeshvartak
All-Star
All-Star

Please share postman screenshot


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

txvajrag_0-1719331973088.png

GEtting responsestatuscode 400 , looks looks like token expiry or some token issue

Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .



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


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

in the logs as well it shows responsestatuscode is 400 and tries to refresh the token for 5 times 

txvajrag
New Contributor III
New Contributor III

This is issue is fixed now. input paramters using the properties rather than httpparams worked