salesforce

package
v2.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SOQLQueryEscape

func SOQLQueryEscape(s string) string

SOQLQueryEscape escapes a parameter for inclusion in a SOQL query

Types

type Authenticator

type Authenticator struct {
	// contains filtered or unexported fields
}

func New

func New(l *zap.Logger, hc httpClient, credentials Credentials) *Authenticator

func (Authenticator) Authenticate

func (a Authenticator) Authenticate(ctx context.Context, tokenStr string) (*auth.Customer, *auth.Token, error)

Authenticate takes a token and returns an authenticated Customer

func (Authenticator) CanAccept

func (a Authenticator) CanAccept(token string) bool

CanAccept returns true if the token can be handled by this Authenticator. A token is acceptable if in the format `<salesforce-user-id>:<salesforce-access-token>`.

type Credentials

type Credentials struct {
	BaseUrl      string `json:"baseUrl"`
	ClientId     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL