package
0.2.0-alpha.3
Repository: https://github.com/superproj/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.
NewMockAuthnInterface creates a new mock instance.
NewMockAuthProvider creates a new mock instance.
NewMockAuthzInterface creates a new mock 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.
MockAuthnInterface is a mock of AuthnInterface interface.
MockAuthnInterfaceMockRecorder is the mock recorder for MockAuthnInterface.
MockAuthProvider is a mock of AuthProvider interface.
MockAuthProviderMockRecorder is the mock recorder for MockAuthProvider.
MockAuthzInterface is a mock of AuthzInterface interface.
MockAuthzInterfaceMockRecorder is the mock recorder for MockAuthzInterface.

# 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.