We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

REST Connector Query : Saving Multiple Credentials in Connection Json

Sivagami
Valued Contributor
Valued Contributor

Hi Team,

We have a requirement to onboard a REST app which has below:

1) OAuth Token endpoint that will generate access token to be used in other API Calls. We have mapped the access token received accordingly so it will be accessible by the variable ${access_token}

2) To access any other API endpoint, in-addition to the access token, we need to send the basic auth credential for the API call to be successful. Token endpoint also expects this basic credential to be sent to get the accesstoken. 

So, in subsequent calls in other blocks we pass ${access_token} but the basic auth creds to access the endpoint is sent in clear text which we don't want. Is there a way to store the basic creds in a variable inside connection json and access it in other block's API calls? 

Thanks in advance!

-Siva

3 REPLIES 3

sahajranajee
Saviynt Employee
Saviynt Employee

Hello,

You can define the credentials inside the connectionjson as key value pair and fetch it in the import json as below :

${connection.plainusername}

where 'plainusername' and its value is defined as a key value pair inside the connectionjson.

 


Regards,
Sahaj Ranajee
Sr. Product Specialist

Sivagami
Valued Contributor
Valued Contributor

Thanks @sahajranajee! I will validate and will keep you posted. In the meanwhile, do we have more constant variables like ${connection.plainusername} or is this the only one available?

There are cases where we have to hide multiple authorization params. Please confirm on the other constant variables available which can be used.

-Siva

sahajranajee
Saviynt Employee
Saviynt Employee

Hi @Sivagami ,

You can define any parameters in the Connection JSON and fetch them as ${connection.<userdefinedparametername>}

 


Regards,
Sahaj Ranajee
Sr. Product Specialist