Method | Description | |
---|---|---|
BasicAuthenticationHandler ( ) : System |
Parameterless constructor. Sets the SuppressIfAlreadyAuthenticated to false.
|
|
BasicAuthenticationHandler ( bool suppressIfAlreadyAuthenticated ) : System |
Constructor to supply the SuppressIfAlreadyAuthenticated value.
|
Method | Description | |
---|---|---|
AuthenticateUserAsync ( |
The method which is responsable for authenticating the user based on the provided credentials.
|
|
HandleUnauthenticatedRequest ( UnauthenticatedRequestContext context ) : void |
Called when the request is unauthenticated.
|
|
SendAsync ( |
Method | Description | |
---|---|---|
EnsureRequestMessageExistence ( |
||
HandleUnauthenticatedRequestImpl ( |
||
TryExtractBasicAuthCredentialsFromHeader ( string authorizationHeader, string &username, string &password ) : bool |
protected abstract AuthenticateUserAsync ( |
||
request | ||
username | string | The username value extracted from BasicAuth header. |
password | string | The password value extracted from BasicAuth header. |
cancellationToken | A cancellation token to cancel operation. | |
return | Task |
public BasicAuthenticationHandler ( ) : System | ||
return | System |
public BasicAuthenticationHandler ( bool suppressIfAlreadyAuthenticated ) : System | ||
suppressIfAlreadyAuthenticated | bool | Indicates whether the authentication should be suppressed if the request is already authenticated. |
return | System |
protected HandleUnauthenticatedRequest ( UnauthenticatedRequestContext context ) : void | ||
context | UnauthenticatedRequestContext | Context object which carries the HTTP request message to send to the server and the empty HTTP response property. |
return | void |
protected SendAsync ( |
||
request | ||
cancellationToken | ||
return | Task |