Click HERE to see how Saviynt Intelligence is transforming the industry. |
06/06/2024 05:42 AM
Dear Team,
We have a target system which expose SCIM 2 endpoint, this endpoint operates the CRUD++ operation with a hardcoded bearer token only.
during the operation we need to send the token as a request header as Authorization: Bearer <token>.
as there is no way to generate this token from Saviynt connection, what we can set in the 'ConnectionJSON' parameter of the REST connector.
The operation for get accounts, create account etc. are working fine, tested with postman.
but in the connection, we need to provide a connection name in each operation jason (e.g. ImportAccountEntJSON)
please advise how to set the connection.
regards,
Partha
06/06/2024 06:29 AM
{
"authentications": {
"acctAuth": {
"authType": "oauth2",
"url": "https://XXXXX/login/oauth/access_token",
"httpMethod": "POST",
"httpParams": "",
"httpHeaders": {
"Content-Type": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"Must authenticate to access this API."
],
"retryFailureStatusCode": [
401,
403
],
"errorPath": "error.message",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"authHeaderName": "Authorization",
"accessToken": "Bearer XXXXXX",
"token":"XXXX"
}
}
}
In other json use ${connection.token}