AuthenticationParameters AuthenticationParameters AuthenticationParameters Class

Definition

Contains authentication parameters based on unauthorized response from resource server.

public sealed class AuthenticationParameters
type AuthenticationParameters = class
Public NotInheritable Class AuthenticationParameters
Inheritance
AuthenticationParametersAuthenticationParametersAuthenticationParameters

Constructors

AuthenticationParameters() AuthenticationParameters() AuthenticationParameters()

Properties

Authority Authority Authority

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

Resource Resource Resource

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

Methods

CreateFromResourceUrlAsync(Uri) CreateFromResourceUrlAsync(Uri) 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) CreateFromResponseAuthenticateHeader(String) 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) CreateFromUnauthorizedResponseAsync(HttpResponseMessage) 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.

Applies to