Click HERE to see how Saviynt Intelligence is transforming the industry. |
11/04/2024 06:59 AM
Hello,
I am trying to establish connection between Saviynt and REST application which has only one API call to import user accounts using username and password. The application does not have separate API endpoint for authentication. I am getting 500 error. Can you please help?
Connection JSON:
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "url",
"httpMethod": "POST",
"httpContentType": "application/json",
"properties": {
"username": "XXXX",
"password": "XXXXX"
},
"expiryError": "Couldn't authenticate you",
"authError": [
"Couldn't authenticate you"
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic asdfghjkl",
"retryFailureStatusCode": [
401,
402,
403,
404,
405,
500
],
"unsuccessResponses": {
"statusCode": [
500,
400,
401,
403,
404,
405,
409
]
}
}
}
}
Import Account ENT JSON:
{
"accountParams": {
"connection": "acctAuth",
"processingType": "SequentialAndIterative",
"call": {
"call1": {
"callOrder": 0,
"stageNumber": 0,
"http": {
"url": "https://xxxx.xxx.com",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"httpContentType": "application/json",
"httpMethod": "GET"
},
"listField": "L",
"keyField": "accountID",
"colsToPropsMap": {
"accountID": "last_name~#~char",
"status": "active~#~char",
"customproperty9":"active~#~char"
}
}
}
},
"entitlementParams": {},
"acctEntParams": {}
}
Curl Command:
curl --location --globoff 'https://www.xxx.xx:8888/api/v2/database/XXXX_TEST/SysUserList?query=%7B%22active%22%3A%22Y%22%7D&res...' \
--header 'Authorization: ••••••'
NOTE: API Call working fine via Postman
11/04/2024 07:40 AM - edited 11/04/2024 07:40 AM
@LoneWolf2020 this much is fine
{
"authentications": {
"acctAuth": {
"authType": "Basic",
"url": "url",
"httpMethod": "POST",
"httpContentType": "application/json",
"properties": {
"username": "XXXX",
"password": "XXXXX"
},
"expiryError": "Couldn't authenticate you",
"authError": [
"Couldn't authenticate you"
],
"timeOutError": "Read timed out",
"errorPath": "error",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Basic",
"accessToken": "Basic asdfghjkl",
"retryFailureStatusCode": [
401,
402,
403,
404,
405,
500
]
}
}
}
}
No need of unsuccess part also .. share url in text format and logs as well.
11/04/2024 08:30 AM
⚠️ Reminder: Mask possible PII such as employee names, email addresses, phone numbers, IP addresses, account details, company-specific URLs, and client names before sharing.⚠️