middlewares

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthnMiddleware

func NewAuthnMiddleware(filterName string, authenticator http.Authenticator) web.Filter

NewAuthnMiddleware returns web.Filter which uses the given security.Authenticator to authenticate the request. FilterMatchers should be extended to cover the desired endpoints.

func NewAuthzMiddleware

func NewAuthzMiddleware(filterName string, authorizer http.Authorizer) web.Filter

NewAuthzMiddleware returns web.Filter which uses the given security.Authorizer to authorize the request. FilterMatchers should be extended to cover the desired endpoints.

Types

This section is empty.

Jump to

Keyboard shortcuts

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