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

How to build a connection with Hardcoded bearer token

parthaghosh
Regular Contributor
Regular Contributor

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 this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.