authenticator

package
v0.1.28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2022 License: LGPL-2.1 Imports: 3 Imported by: 0

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

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 Info

type Info struct {
	IsGrpc bool
	IsHttp bool
	Name   string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL