middlewares

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	Authenticator http.Authenticator
}

Authentication type represents an authentication middleware

func (*Authentication) Run

func (m *Authentication) Run(request *web.Request, next web.Handler) (*web.Response, error)

Run represents the authentication middleware function that delegates the authentication to the provided authenticator

type Authorization

type Authorization struct {
	Authorizer http.Authorizer
}

Authorization type represents an authorization middleware

func (*Authorization) Run

func (m *Authorization) Run(request *web.Request, next web.Handler) (*web.Response, error)

Run represents the authorization middleware function that delegates the authorization to the provided authorizer

Jump to

Keyboard shortcuts

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