Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SOQLQueryEscape ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.