middlewares

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2019 License: Apache-2.0, BSD-3-Clause, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthnMiddleware

func NewAuthnMiddleware(filterName string, authenticator security.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 security.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