Help us shape the future of Go! Take the 2026 Go Developer Survey

oauth2

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOAuth2Middleware

func NewOAuth2Middleware(log logger.Logger) middleware.Middleware

NewOAuth2Middleware returns a new oAuth2 middleware.

Types

type Middleware

type Middleware struct {
	// contains filtered or unexported fields
}

Middleware is an oAuth2 authentication middleware.

func (*Middleware) GetComponentMetadata added in v1.11.0

func (m *Middleware) GetComponentMetadata() (metadataInfo mdutils.MetadataMap)

func (*Middleware) GetHandler

func (m *Middleware) GetHandler(ctx context.Context, 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