Application Registry - Client secret Password2 type

Alex73
Tera Contributor

Hi,

I would like to know if the field Password2 of Client Secret is visible to Admin role unlock the padlock beside the field.

Thanks in advance

Alex.

4 REPLIES 4

Community Alums
Not applicable

Hi Alex,

No user can see the password even admin. That is how ServiceNow interprets the password field.

But, If your field type is of password2 then you can decrypt with the below code,

var Encrypter = new GlideEncrypter();   
var encrypted = current.<your_field name> ;
var decrypted = Encrypter.decrypt(encrypted);    
gs.addInfoMessage("encrypted password..   " + encrypted);   
gs.addInfoMessage("decrypted password..   " + decrypted);

 

Mark my answer correct & Helpful, if Applicable.

Thanks,
Sandeep

Alex73
Tera Contributor

Thanks for your answer but I put a picture of Application Registry form with the padlock unlocked for the field Client Secret and as you can see I, as Admin, can read clearly the word "EnterSecret" as example value for a test. Do I lost something?

Best Reards.

Alex.

find_real_file.png

 

 

 

Community Alums
Not applicable

That's the expected Behavior!!

You cannot read the "client secret" as an Admin.

Ops I made another example modifying the Client Secret. I put a test value as you can see in the picture. 

Best Regards

Alex.

find_real_file.png