bearer

package
v1.10.10 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBearerMiddleware

func NewBearerMiddleware(_ logger.Logger) middleware.Middleware

NewBearerMiddleware returns a new oAuth2 middleware.

Types

type Middleware

type Middleware struct{}

Middleware is an oAuth2 authentication middleware.

func (*Middleware) GetHandler

func (m *Middleware) GetHandler(metadata middleware.Metadata) (func(next http.Handler) http.Handler, error)

GetHandler retruns the HTTP handler provided by the middleware.

Jump to

Keyboard shortcuts

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