Documentation
¶
Overview ¶
Package authenticator is used to authenticate requests in and out of Hera. Both the PublicAuthenticator and AdminAuthenticator is passed to the middleware of all servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SystemPublicAuthenticator PublicAuthenticator SystemAdminAuthenticator AdminAuthenticator )
Functions ¶
func New ¶
func New(repository repository.Repository) (AdminAuthenticator, PublicAuthenticator)
Types ¶
type AdminAuthenticator ¶
type AdminAuthenticator interface {
AuthenticateRequest(ctx context.Context, req *go_nuntio.HeraRequest, info *Info) error
}
AdminAuthenticator is used to authenticate admin requests and responses before going in and out of Hera.
type DefaultAdminAuthenticator ¶ added in v0.1.20
type DefaultAdminAuthenticator struct {
// contains filtered or unexported fields
}
func (*DefaultAdminAuthenticator) AuthenticateRequest ¶ added in v0.1.20
func (d *DefaultAdminAuthenticator) AuthenticateRequest(ctx context.Context, req *go_nuntio.HeraRequest, info *Info) error
type NoPublicAuthenticator ¶
type NoPublicAuthenticator struct{}
func (*NoPublicAuthenticator) AuthenticateRequest ¶
func (*NoPublicAuthenticator) AuthenticateRequest(ctx context.Context, req *go_nuntio.HeraRequest, info *Info) error
type PublicAuthenticator ¶
type PublicAuthenticator interface {
AuthenticateRequest(ctx context.Context, req *go_nuntio.HeraRequest, info *Info) error
}
PublicAuthenticator is used to authenticate public requests and responses before going in and out of Hera.
Click to show internal directories.
Click to hide internal directories.