Documentation ¶
Index ¶
- Variables
- func Decrypt(ciphertext []byte, key []byte) ([]byte, error)
- func Encrypt(plaintext []byte, key []byte) ([]byte, error)
- func ForbiddenHTTPError(description string) error
- func UnauthorizedHTTPError(description string) error
- type Encrypter
- type KeyFetcher
- type KeySetter
- type TwoLayerEncrypter
Constants ¶
This section is empty.
Variables ¶
View Source
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 Encrypter ¶
type Encrypter interface { Encrypt(ctx context.Context, plaintext []byte) ([]byte, error) Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error) }
Encrypter provides functionality to encrypt and decrypt data
type KeyFetcher ¶
KeyFetcher provides functionality to get encryption key from a remote location
type TwoLayerEncrypter ¶
type TwoLayerEncrypter struct {
Fetcher KeyFetcher
}
TwoLayerEncrypter is an encrypter that fetches the encryption key from a remote location
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. |
Click to show internal directories.
Click to hide internal directories.