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
-
AuthenticationParameters
Constructors
AuthenticationParameters() | |
AuthenticationParameters(String, String) |
Ctor |
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. |
CreateFromUrlAsync(Uri) |
Sends a GET request to the url provided with no Authenticate header. If a 401 Unauthorized is received, this helper will parse the WWW-Authenticate header to retrieve the authority and resource. |