Documentation ¶
Overview ¶
Package clauthn provides re-usable authentication (AuthN).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestProvide ¶
TestProvide provides authn authz dependencies that are easy to use in tests.
Types ¶
type Authn ¶
type Authn struct {
// contains filtered or unexported fields
}
Authn provides authentication.
func (*Authn) AuthenticateJWT ¶
AuthenticateJWT by parsing and validating the inp as a JSON web token (JWT).
type Config ¶
type Config struct { // PrivateSigningKeys will hold private keys for signing JWTs PubPrivKeySetB64JSON string `env:"PUB_PRIV_KEY_SET_B64_JSON" envDefault:"eyJrZXlzIjpbXX0="` // DefaultSignKeyID defines the default key id used for signing DefaultSignKeyID string `env:"DEFAULT_SIGN_KEY_ID" envDefault:"key1"` }
Config configures the package.
Click to show internal directories.
Click to hide internal directories.