Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

How to build a connection with Hardcoded bearer token

parthaghosh
New Contributor III
New Contributor III

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

1 REPLY 1

rushikeshvartak
All-Star
All-Star

{
"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}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.