Share via


ClientAuthentication Class

Definition

A class that provides methods to create a client authentication object for basic authorization of the client to the authorization server.

Note

This class is used to authenticate the client application to the authorization server. It isn't used to authenticate the user to the client application. User authentication is handled by the RequestAuthWithParamsAsync method of the OAuth2Manager class.

public ref class ClientAuthentication sealed
/// [Windows.Foundation.Metadata.Activatable(Microsoft.Security.Authentication.OAuth.IClientAuthenticationFactory, 65536, "Microsoft.Security.Authentication.OAuth.OAuthContract")]
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Security.Authentication.OAuth.OAuthContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Security.Authentication.OAuth.OAuthContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ClientAuthentication final
[Windows.Foundation.Metadata.Activatable(typeof(Microsoft.Security.Authentication.OAuth.IClientAuthenticationFactory), 65536, "Microsoft.Security.Authentication.OAuth.OAuthContract")]
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Security.Authentication.OAuth.OAuthContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Security.Authentication.OAuth.OAuthContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ClientAuthentication
function ClientAuthentication(authorization)
Public NotInheritable Class ClientAuthentication
Inheritance
Object Platform::Object IInspectable ClientAuthentication
Attributes

Constructors

ClientAuthentication()

Creates a new instance of the ClientAuthentication class.

ClientAuthentication(HttpCredentialsHeaderValue)

Creates a new instance of the ClientAuthentication class with the specified authorization header as parameter.

Properties

AdditionalHeaders

Specifies additional header values of the HTTP POST request when requesting a token.

Authorization

Specifies the Authorization header of the HTTP POST request when requesting a token.

ProxyAuthorization

Specifies the Proxy-Authorization header of the HTTP POST request when requesting a token.

Methods

CreateForBasicAuthorization(String, String)

A static method to return a new ClientAuthentication object with basic authorization.

Applies to