How to setup a secret attribute/property in connectionJSON of REST Connector?

alc
Regular Contributor
Regular Contributor

Hello

We configured a REST Connector to access a REST API via OAuth2 authentication, it works fine.

However, when create account, the REST API need connect to backend Database to save some account information in database.

if we set the database connection credential string in createAccountJSON, it works. however, the credential is in clear text in this case.

Can I set such db connection string into connectionJSON of the REST Connector?

connectionJSON is encrypted so the credential is hidden this way. But how can I use it in creatAccountJSON? 

For a Jar Connector, I can use ${connectionJSON.dbConnectionStr} refer to it. but looks REST  Connector is not working this way.

Any idea how I can utilize ConnectionJSON for such credential information that need to be used in CreateAccountJSON?

Thanks.

2 REPLIES 2

SB
Saviynt Employee
Saviynt Employee

I believe the below article will help to achieve your use case.

https://forums.saviynt.com/t5/saviynt-knowledge-base/how-to-mask-password-in-rest-connector-json-by-...


Regards,
Sahil

alc
Regular Contributor
Regular Contributor

Thank you very much Sahil. It is exactly what I need.