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

How to stored password's in Saviynt for External Jars

gwagh
New Contributor III
New Contributor III

Hi Team, 

 

Is there any way to upload custom.properties file in Saviynt, We have multiple Jar files and for now we have pass hardcoded username and password in the code. But I want to keep them in properties file so  that if we can upload in Saviynt and from saviynt_home  code will ready it? Or any other design for this ?? 

 

7 REPLIES 7

Sivagami
Valued Contributor
Valued Contributor

We have asked Saviynt to upload it in their conf folder in backend and we referenced it in our Jar's and passed the property file path as parameter (Arguments) in Jar job. There isn't a way at this point to upload from UI.

Only Jar's can be uploaded from UI.

In our case we have uploaded properties file used for jar into datafiles using postman API, but production is SSO hence we changed properties file to .csv which we can upload from UI.

rushikeshvartak_0-1698020702653.png

 

 

Please submit idea ticket


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

@gwagh 

Please submit an idea ticket in Saviynt Ideas Portal.

Regards,
Dhruv Sharma
If this reply answered your question, please accept it as Solution to help others who may have a similar problem.

Okay , But How I can read data file in code ? any reference ?

 

Hi @rushikeshvartak , How we can read Datafile in Code ?

Hi @gwagh ,

You can use FileInputStream class present in java.io package to read the properties/csv file in your jar code. Here is snippet we used:

public static Properties getProperties() {
Properties prop = null;
prop = new Properties();
String propFileLoc = "/saviynt_shared/saviynt/Import/Datafiles/codeproperties.csv"
FileInputStream inputStream = null;
try {
inputStream = new FileInputStream(propFileLoc);
prop.load(inputStream);
} catch (IOException e) {
e.printStackTrace();
}
return prop;
}

Use returned properties object to get any property value in your properties file

Example: String username = prop.getProperty("username");


Pandharinath Mahalle(Paddy)
If this reply answered your question, please Accept As Solution to help other who may have a same problem. Give Kudos 🙂

gwagh
New Contributor III
New Contributor III

Thanks, Its working now.