authorization

package
v5.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	// AccessToken is a customer access token returned by LiveChat OAuth Server.
	AccessToken string
	// Region is a datacenter for LicenseID (`dal` or `fra`).
	Region string
	// Type specifies whether it is Bearer or Basic token type.
	Type TokenType
	// OrganizationID specifies ID of organization which owns the token.
	OrganizationID string
}

Token represents SSO token from Chat API's perspective.

type TokenGetter

type TokenGetter func() *Token

TokenGetter is called by each API method to obtain valid Token. If TokenGetter returns nil, the method won't be executed on API.

type TokenType

type TokenType int

TokenType represents authentication scheme.

const (
	BearerToken TokenType = iota
	BasicToken
)

Supported values of TokenType.

func (TokenType) String

func (t TokenType) String() string

Jump to

Keyboard shortcuts

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