Table of Contents

Class AuthInfo

Namespace
NetCoreForce.Client.Models
Assembly
NetCoreForce.Client.dll

Contains login info for the Salesforce API, including OAuth endpoint URLs

public class AuthInfo
Inheritance
AuthInfo
Inherited Members

Properties

ApiVersion

Salesforce API version

[JsonProperty(PropertyName = "apiVersion")]
public string ApiVersion { get; set; }

Property Value

string

AuthMethod

Auth type

[JsonProperty(PropertyName = "authMethod")]
public AuthInfo.AuthMethodType? AuthMethod { get; set; }

Property Value

AuthInfo.AuthMethodType?

AuthorizationEndpoint

Authorization Endpoint

e.g. https://login.salesforce.com/services/oauth2/authorize

[JsonProperty(PropertyName = "authorizationEndpoint")]
public string AuthorizationEndpoint { get; set; }

Property Value

string

ClientId

Client ID, a.k.a. Consumer Key

[JsonProperty(PropertyName = "clientId")]
public string ClientId { get; set; }

Property Value

string

ClientSecret

Client Secret, a.k.a. Consumer Secret

[JsonProperty(PropertyName = "clientSecret")]
public string ClientSecret { get; set; }

Property Value

string

Password

Salesforce password

[JsonProperty(PropertyName = "password")]
public string Password { get; set; }

Property Value

string

RefreshToken

Optional refresh token, for testing TokenRefreshAsync(string, string, string, string).

The username-password auth flow does not return a refresh token, so this must be obtained separately (e.g. via the Web Server OAuth flow) and set manually.

[JsonProperty(PropertyName = "refreshToken")]
public string RefreshToken { get; set; }

Property Value

string

TokenIntrospectionEndpoint

OAuth 2.0 token introspection endpoint URL

e.g. https://login.salesforce.com/services/oauth2/introspect

[JsonProperty(PropertyName = "tokenIntrospectionEndpoint")]
public string TokenIntrospectionEndpoint { get; set; }

Property Value

string

TokenRequestEndpoint

Token request endpoint

e.g. https://login.salesforce.com/services/oauth2/token

Also used for the OAuth refresh roken process

[JsonProperty(PropertyName = "tokenRequestEndpoint")]
public string TokenRequestEndpoint { get; set; }

Property Value

string

TokenRevocationEndpoint

OAuth token revocation endpoint

e.g. https://login.salesforce.com/services/oauth2/revoke

[JsonProperty(PropertyName = "tokenRevocationEndpoint")]
public string TokenRevocationEndpoint { get; set; }

Property Value

string

Username

Salesforce username

[JsonProperty(PropertyName = "username")]
public string Username { get; set; }

Property Value

string