Ghost1372

everything can be handy

CredentialHelper

RequestWindowsPIN

you can verify your users by requesting windows pin

1
bool result = await CredentialHelper.RequestWindowsPIN("Please Enter your OS Pin so we can verify its you!");

DevWinUI

PickCredential

Get username and password with Windows Credential Picker

1
2
3
CredentialPickerResults result = await CredentialHelper.PickCredential("Caption", "Message");
var password = result.CredentialPassword;
var username = result.CredentialUserName;

DevWinUI

AddPasswordCredential

Add password to Windows Credential

1
CredentialHelper.AddPasswordCredential("myResource", "username", "password");

GetPasswordCredential

Get password from Windows Credential

1
2
3
4
PasswordCredential result = CredentialHelper.GetPasswordCredential("myResource", "username");
var username = result.UserName;
var password = result.Password;

RemovePasswordCredential

Remove password from Windows Credential

1
CredentialHelper.RemovePasswordCredential("myResource", "username");

Demo

you can run demo and see this feature.

0%