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

Client credentials grant type as authentication for REST connector

Robbe_Cronos
Regular Contributor II
Regular Contributor II

Hello,

We need to use client credentials grant in the REST connector to authenticate to multiple services on 2 authentication layers. 

Example: 

We log on to azure with client_ceredentials grant type to get an access token. We then use this access token to get another access token so we can retrieve the information we need.

We haven't found anything in the documentation of the REST connector about this and were wondering if this is even a feature.

Is it possible to work with this?

Kinds regards,

Robbe

3 REPLIES 3

rushikeshvartak
All-Star
All-Star
{
    "authentications": {
        "accAuth": {
            "authType": "oauth2",
            "url": "https://URL/oauth2/apitoken/v1?grant_type=client_credentials",
            "httpMethod": "POST",
            "httpParams": {},
            "httpHeaders": {
                "Authorization": "Basic idk"
            },
            "httpContentType": "application/json",
            "authError": [
                "Unauthorized"
            ],
            "errorPath": "",
            "retryFailureStatusCode": [401],
            "maxRefreshTryCount": 5,
            "tokenResponsePath": "access_token",
            "tokenType": "Bearer",
            "accessToken": "Bearer 65fc5720a4c959d5e0bdf1445120e6a1"
        }
    }
}

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

This is a solution for only one layer of authentication. We want to know if there is a possibility to combat 2 layers of authentication (check example given in post). 

sagars
Saviynt Employee
Saviynt Employee

Hello @Robbe_Cronos ,

We do support multiple calls. Please find the sample Connection JSON attached. Will update the document as well with the example.

Regards,
Sagar Srikantaiah