Table of Contents

Interface IUserNamePasswordProvider

Namespace
Arc4u.OAuth2.Token
Assembly
Arc4u.OAuth2.dll

Provides the user name and password of the user, for example by prompting him.

public interface IUserNamePasswordProvider

Methods

GetCredentials(string?, CheckCredentialsAsync)

Used to provide the user name and password.

Task<CredentialsResult> GetCredentials(string? upn, CheckCredentialsAsync checkCredentials)

Parameters

upn string

The current know upn of the user. Can be null if unknown.

checkCredentials CheckCredentialsAsync

A callback that validates the credentials entered by the user, so the provider can reject wrong ones before returning.

Returns

Task<CredentialsResult>

The CredentialsResult containing the upn and password of the user.