authentication

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 10 Imported by: 2 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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