internal

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(prv *provider.Provider) *service

NewService returns a new middleware service configured with the given provider

Types

type Service

type Service interface {
	Login(username, password string) (*models.TokenReviewRequest, error)
	Authenticate(bearerToken string) (*models.TokenReviewRequest, error)
}

Service represents the middleware used by authproxy

func NewLoggingService

func NewLoggingService(logger log.Logger, s Service) Service

func NewMetricsService

func NewMetricsService(loginAttempts metrics.Counter, service Service) Service

Jump to

Keyboard shortcuts

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