Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBearerMiddleware ¶
func NewBearerMiddleware(logger logger.Logger) middleware.Middleware
NewBearerMiddleware 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 contribMetadata.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.
Click to show internal directories.
Click to hide internal directories.