Credential Manager lets you view and delete your saved credentials for signing in to websites, connected applications, and networks.
// ----------------------------------------------------------------
// Step: Declare_credential
// ----------------------------------------------------------------
GLOBAL.step({ Declare_credential: function(ev, sc, st) {
var rootData = sc.data;
ctx.workflow('localCredentials', 'e27c531a-c14a-4286-b156-fc31e7d81b66') ;
// Declares a credential
ctx.cryptography.credential({ myLocalCredentials: {
comment: "My credential",
server: false
}});
sc.endStep(); // Get_credential
return;
}});
// ----------------------------------------------------------------
// Step: Get_credential
// ----------------------------------------------------------------
GLOBAL.step({ Get_credential: function(ev, sc, st) {
var rootData = sc.data;
ctx.workflow('localCredentials', '23a62cb5-6924-45d0-9e1f-8d017ce5ebf9') ;
// Retrieves credential login and password
ctx.cryptography.credentials.myLocalCredentials.get(function(code, label, credential) {
if (code == e.error.OK) {
// get values for credential
rootData.username = credential.userName.get();
rootData.password = credential.password.get();
ctx.log("Username: " + rootData.username);
ctx.log("Password: " + rootData.password);
}
});
}});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
24 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |