auth

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyRoleId       = "role_id"
	KeySecretId     = "secret_id"
	KeySecretIdFile = "secret_id_file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRoleAuth

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

func NewAppRoleAuth

func NewAppRoleAuth(client *api.Client, loginData map[string]string) (*AppRoleAuth, error)

func (*AppRoleAuth) Authenticate

func (t *AppRoleAuth) Authenticate() (string, error)

type NoAuth

type NoAuth struct {
}

func (*NoAuth) Authenticate

func (t *NoAuth) Authenticate() (string, error)

type TokenAuth

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

func NewTokenAuth

func NewTokenAuth(token string) (*TokenAuth, error)

func (*TokenAuth) Authenticate

func (t *TokenAuth) Authenticate() (string, error)

type TokenImplicitAuth

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

func NewTokenImplicitAuth

func NewTokenImplicitAuth() *TokenImplicitAuth

func (*TokenImplicitAuth) Authenticate

func (t *TokenImplicitAuth) Authenticate() (string, error)

Jump to

Keyboard shortcuts

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