auth

package
v4.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKey

type ApiKey struct {
	Value string
}

func (ApiKey) GetAuthInfo

func (api ApiKey) GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)

Returns the header used for the authentification.

type BearerToken

type BearerToken struct {
	AccessToken  string
	RefreshToken string
	ExpiresIn    uint
	// contains filtered or unexported fields
}

func (BearerToken) GetAuthInfo

func (bt BearerToken) GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)

type ClientCredentials

type ClientCredentials struct {
	ClientSecret string
	Scopes       []string
	// contains filtered or unexported fields
}

func (ClientCredentials) GetAuthInfo

func (cc ClientCredentials) GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)

type Config

type Config interface {
	GetAuthInfo(con *connection.Connection) (*http.Client, map[string]string, error)
}

type ResourceOwnerPasswordFlow

type ResourceOwnerPasswordFlow struct {
	Username string
	Password string
	Scopes   []string
	// contains filtered or unexported fields
}

func (ResourceOwnerPasswordFlow) GetAuthInfo

Jump to

Keyboard shortcuts

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