Skip to content

Conversation

@mohammaduvez
Copy link

Initial implementation of credential provider service to store and return password credential.

Copy link
Owner

@PhilippC PhilippC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating the PR! Unfortunately I wasn't able to test it successfully. Do I need to enable anything first because KP2A now pops up as credential prodvider service in the CredentialManagerSample?

{
var username = entry.Strings.ReadSafe(PwDefs.UserNameField);
var password = entry.Strings.ReadSafe(PwDefs.PasswordField);
if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this? Couldn't some credentials have empty username or password?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because PasswordCredential requires non-null, non-empty password,
Although, username could be empty but not null, I will remove the check for username.

@mohammaduvez
Copy link
Author

Thanks for creating the PR! Unfortunately I wasn't able to test it successfully. Do I need to enable anything first because KP2A now pops up as credential prodvider service in the CredentialManagerSample?

I think you will need to enable the service in "Settings" > "Passwords, Passkeys and Accounts"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants