package
0.2.0-alpha.14
Repository: https://github.com/onexstack/onex.git
Documentation: pkg.go.dev

# Functions

NewAuth is a constructor function that creates a new instance of auth struct.
NewAuthn returns a new instance of authn.
NewAuthz creates a new authorization instance using the provided database, Redis options, and logger.
NewLogger creates a new kafkaLogger instance.

# Variables

AuthnProviderSet is authn providers.
AuthzProviderSet defines a wire set for authorization.
ErrMissingKID is returned when the token format is invalid and the kid field is missing in the token header.
ErrSecretDisabled is returned when the SecretID is disabled.
LoggerProviderSet defines a wire set for creating a kafkaLogger instance to implement log.Logger interface.
ProviderSet is a Wire provider set that creates a new instance of auth.

# Structs

AuditMessage is the message structure for log messages.

# Interfaces

AuthnInterface defines the interface for authentication.
AuthProvider is an interface that combines both the AuthnInterface and AuthzInterface interfaces.
AuthzInterface defines the interface for authorization.
SecretSetter is used to set or get a temporary secret key pairs.