Table of Contents

Class OAuthCredentials

Namespace
Microsoft.Exchange.WebServices.Data
Assembly
Microsoft.Exchange.WebServices.dll

OAuthCredentials provides credentials for server-to-server authentication. The JSON web token is defined at http://tools.ietf.org/id/draft-jones-json-web-token-03.txt. The token string is base64url encoded (described in http://www.ietf.org/rfc/rfc4648.txt, section 5).

OAuthCredentials is supported for Exchange 2013 or above.

public sealed class OAuthCredentials : ExchangeCredentials
Inheritance
OAuthCredentials
Inherited Members

Constructors

OAuthCredentials(ICredentials)

Initializes a new instance of the OAuthCredentials class using specified credentials.

public OAuthCredentials(ICredentials credentials)

Parameters

credentials ICredentials

Credentials to use.

OAuthCredentials(string)

Initializes a new instance of the OAuthCredentials class.

public OAuthCredentials(string token)

Parameters

token string

The JSON web token string.