AuthenticationParameters Class

Definition

Contains authentication parameters based on unauthorized response from resource server.

public sealed class AuthenticationParameters
Inheritance
AuthenticationParameters

Constructors

AuthenticationParameters()

Properties

Authority

Gets or sets the address of the authority to issue token.

Resource

Gets or sets the identifier of the target resource that is the recipient of the requested token.

Methods

CreateFromResourceUrlAsync(Uri)

Creates authentication parameters from address of the resource. This method expects the resource server to return unauthorized response with WWW-Authenticate header containing authentication parameters.

CreateFromResponseAuthenticateHeader(String)

Creates authentication parameters from the WWW-Authenticate header in response received from resource. This method expects the header to contain authentication parameters.

CreateFromUnauthorizedResponseAsync(HttpResponseMessage)

Creates authentication parameters from the response received from the response received from the resource. This method expects the response to have unauthorized status and WWW-Authenticate header containing authentication parameters.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)