auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(config Config) (*force.ForceApi, error)

func SignJWT

func SignJWT(privateKey []byte, user string, clientId string, audience string) (string, error)

Types

type AuthResponse

type AuthResponse struct {
	AccessToken string `json:"access_token"`
	Scope       string `json:"scope"`
	InstanceUrl string `json:"instance_url"`
	Id          string `json:"id"`
	TokenType   string `json:"token_type"`
}

func Authenticate

func Authenticate(domain string, signedJwt string) (AuthResponse, error)

type Config

type Config struct {
	ClientId   string
	PrivateKey string
	ApiVersion string
	Username   string
	LoginUrl   string
}

Jump to

Keyboard shortcuts

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