Class AnsiCliCredentialProvider
Asks the user for System.Net.NetworkCredentials using an ANSI console prompt.
public class AnsiCliCredentialProvider : ICredentialProvider
- Inheritance
-
objectAnsiCliCredentialProvider
- Implements
- Extension Methods
Constructors
AnsiCliCredentialProvider(Action?)
Asks the user for System.Net.NetworkCredentials using an ANSI console prompt.
public AnsiCliCredentialProvider(Action? beforePrompt = null)
Parameters
beforePrompt
ActionAn optional callback to be invoked right before the user is prompted for credentials
Methods
GetCredential(Uri, bool)
Returns System.Net.NetworkCredentials for a specific System.Uri.
public NetworkCredential GetCredential(Uri uri, bool previousIncorrect = false)
Parameters
uri
UriThe URI that the client is providing authentication for.
previousIncorrect
boolReports that the credentials previously returned by this provider were incorrect.
Returns
- NetworkCredential