Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrUserNotFound = errors.New("user identity must be provided when allowing authentication")
ErrUserNotFound error when authentication passed but no user found
Functions ¶
func ForbiddenHTTPError ¶
ForbiddenHTTPError returns HTTPError 403 with some description
func UnauthorizedHTTPError ¶
UnauthorizedHTTPError returns HTTPError 401 with some description
Types ¶
type AESEncrypter ¶ added in v0.3.3
type AESEncrypter struct { }
AESEncrypter is an encrypter that fetches the encryption key from a remote location
type Encrypter ¶
type Encrypter interface { Encrypt(ctx context.Context, plaintext, key []byte) ([]byte, error) Decrypt(ctx context.Context, ciphertext, key []byte) ([]byte, error) }
Encrypter provides functionality to encrypt and decrypt data
type HashingIntegrityProcessor ¶ added in v0.11.0
HashingIntegrityProcessor is an integrity processor that uses a hashing func to calculate the integrity
func (*HashingIntegrityProcessor) CalculateIntegrity ¶ added in v0.11.0
func (h *HashingIntegrityProcessor) CalculateIntegrity(integral IntegralObject) ([]byte, error)
CalculateIntegrity calculates the integrity of an integral object using a hashing func
func (*HashingIntegrityProcessor) ValidateIntegrity ¶ added in v0.11.0
func (h *HashingIntegrityProcessor) ValidateIntegrity(integral IntegralObject) bool
ValidateIntegrity validates the integrity of an integral object using a hashing func
type IntegralObject ¶ added in v0.11.0
IntegralObject interface indicates that an objects needs to be processed with regards to its integrity
type IntegrityProcessor ¶ added in v0.11.0
type IntegrityProcessor interface { ValidateIntegrity(integral IntegralObject) bool CalculateIntegrity(integral IntegralObject) ([]byte, error) }
IntegrityProcessor provides functionality to validate and calculate the integrity of an integral object
Directories ¶
Path | Synopsis |
---|---|
Package authenticators contains logic for setting up an Open ID Connect authenticator
|
Package authenticators contains logic for setting up an Open ID Connect authenticator |
httpfakes
Code generated by counterfeiter.
|
Code generated by counterfeiter. |
Code generated by counterfeiter.
|
Code generated by counterfeiter. |