Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class Duende.​IdentityModel.​Client.​AuthorizationHeaderExtensions
Assembly: Duende.IdentityModel
Inheritance: object → AuthorizationHeaderExtensions
Extensions for HttpRequestMessage
Methods
public static
void
SetBasicAuthentication​(System.​Net.​Http.​HttpClient client,
string userName,
string password)
Sets a basic authentication header.
client
The client.
userName
Name of the user.
password
The password.
public static
void
SetBasicAuthenticationOAuth​(System.​Net.​Http.​HttpClient client,
string userName,
string password)
Sets a basic authentication header for RFC6749 client authentication.
client
The client.
userName
Name of the user.
password
The password.
public static
void
SetToken​(System.​Net.​Http.​HttpClient client,
string scheme,
string token)
Sets an authorization header with a given scheme and value.
client
The client.
scheme
The scheme.
token
The token.
public static
void
SetBearerToken​(System.​Net.​Http.​HttpClient client,
string token)
Sets an authorization header with a bearer token.
client
The client.
token
The token.
public static
void
SetBasicAuthentication​(System.​Net.​Http.​HttpRequestMessage request,
string userName,
string password)
Sets a basic authentication header.
request
The HTTP request message.
userName
Name of the user.
password
The password.
public static
void
SetBasicAuthenticationOAuth​(System.​Net.​Http.​HttpRequestMessage request,
string userName,
string password)
Sets a basic authentication header for RFC6749 client authentication.
request
The HTTP request message.
userName
Name of the user.
password
The password.
public static
void
SetToken​(System.​Net.​Http.​HttpRequestMessage request,
string scheme,
string token)
Sets an authorization header with a given scheme and value.
request
The HTTP request message.
scheme
The scheme.
token
The token.
public static
void
SetBearerToken​(System.​Net.​Http.​HttpRequestMessage request,
string token)
Sets an authorization header with a bearer token.
request
The HTTP request message.
token
The token.
public static
void
SetDPoPToken​(System.​Net.​Http.​HttpRequestMessage request,
string accessToken,
string proofToken)
Sets an authorization header with a DPoP token, and the DPoP proof token header with a proof token.
request
The HTTP request message.
accessToken
The access token.
proofToken
The proof token.
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object