Class WindowsCredentialProvider
Gets NetworkCredentials using the Windows Credential Manager.
public abstract class WindowsCredentialProvider : ICredentialProvider
- Inheritance
-
objectWindowsCredentialProvider
- Implements
- Derived
- Extension Methods
Constructors
WindowsCredentialProvider()
protected WindowsCredentialProvider()
Methods
GetCredential(string, WindowsCredentialsFlags)
Performs the actual WindowsCredentials API call to prompt the user or the credential store for credentials.
protected abstract NetworkCredential? GetCredential(string target, WindowsCredentialsFlags flags)
Parameters
targetstringA string identifying the target the credentials are intended for.
flagsWindowsCredentialsFlagsFlags for configuring the prompt.
Returns
GetCredential(Uri, bool)
Returns NetworkCredentials for a specific Uri.
public NetworkCredential? GetCredential(Uri uri, bool previousIncorrect = false)
Parameters
uriUriThe URI that the client is providing authentication for.
previousIncorrectboolReports that the credentials previously returned by this provider were incorrect.