Class AuthInfo
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
AuthMethod
Auth type
[JsonProperty(PropertyName = "authMethod")]
public AuthInfo.AuthMethodType? AuthMethod { get; set; }
Property Value
AuthorizationEndpoint
Authorization Endpoint
e.g. https://login.salesforce.com/services/oauth2/authorize
[JsonProperty(PropertyName = "authorizationEndpoint")]
public string AuthorizationEndpoint { get; set; }
Property Value
ClientId
Client ID, a.k.a. Consumer Key
[JsonProperty(PropertyName = "clientId")]
public string ClientId { get; set; }
Property Value
ClientSecret
Client Secret, a.k.a. Consumer Secret
[JsonProperty(PropertyName = "clientSecret")]
public string ClientSecret { get; set; }
Property Value
Password
Salesforce password
[JsonProperty(PropertyName = "password")]
public string Password { get; set; }
Property Value
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
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
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
TokenRevocationEndpoint
OAuth token revocation endpoint
e.g. https://login.salesforce.com/services/oauth2/revoke
[JsonProperty(PropertyName = "tokenRevocationEndpoint")]
public string TokenRevocationEndpoint { get; set; }
Property Value
Username
Salesforce username
[JsonProperty(PropertyName = "username")]
public string Username { get; set; }