Interface IUserNamePasswordProvider
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
upnstringThe current know upn of the user. Can be null if unknown.
checkCredentialsCheckCredentialsAsyncA 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.