authentication

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: GPL-3.0 Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilCryptoComponentsHolder = errors.New("nil cryptoComponentsHolder")

ErrNilCryptoComponentsHolder signals that a nil cryptoComponentsHolder has been provided

View Source
var ErrNilProxy = errors.New("nil proxy")

ErrNilProxy signals that a nil proxy was provided

View Source
var ErrNilTxSigner = errors.New("nil transaction signer")

ErrNilTxSigner signals that a nil transaction signer was provided

Functions

func NewNativeAuthClient

func NewNativeAuthClient(args ArgsNativeAuthClient) (*nativeAuthClient, error)

NewNativeAuthClient will create a new native client able to create authentication tokens

Types

type ArgsNativeAuthClient

type ArgsNativeAuthClient struct {
	Signer                 builders.Signer
	ExtraInfo              interface{}
	Proxy                  workflows.ProxyHandler
	CryptoComponentsHolder core.CryptoComponentsHolder
	TokenExpiryInSeconds   uint64
	Host                   string
}

ArgsNativeAuthClient is the DTO used in the native auth client constructor

type AuthClient

type AuthClient interface {
	GetAccessToken() (string, error)
	IsInterfaceNil() bool
}

AuthClient defines the behavior of an authentication client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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