- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2025 11:43 PM
I am trying to implement basic authentication in one of my applications. I have stored the credentials in my instance as a record. The password I am not able to read password because it is encrypted.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2025 11:46 PM
Hello,
You can use this piece of code to retrieve the credentials.
var details = {};
var provider = new sn_cc.StandardCredentialsProvider();
var credential = provider.getCredentialByID(credentialsSysId);
details.userID = credential.getAttribute("user_name");
details.password = credential.getAttribute("password");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2025 11:49 PM
Hi @vaibhavshar2358,
---------------------------------------------------------------------------
What is your exact Use Case, could you please elaborate more?
Thanks & Regards
Mayank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2025 11:46 PM
Hello,
You can use this piece of code to retrieve the credentials.
var details = {};
var provider = new sn_cc.StandardCredentialsProvider();
var credential = provider.getCredentialByID(credentialsSysId);
details.userID = credential.getAttribute("user_name");
details.password = credential.getAttribute("password");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2025 11:49 PM
Hi @vaibhavshar2358,
---------------------------------------------------------------------------
What is your exact Use Case, could you please elaborate more?
Thanks & Regards
Mayank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2025 11:53 PM - edited ‎07-07-2025 11:54 PM
@vaibhavshar2358 Check this one if helps and you can retrieve password if field type password2: