authz

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0, BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAndAuthorizer

func NewAndAuthorizer(authorizers ...httpsec.Authorizer) httpsec.Authorizer

func NewBaseAuthorizer

func NewBaseAuthorizer(userProcessingFunc func(context.Context, *web.UserContext) (httpsec.Decision, web.AccessLevel, error)) *baseAuthorizer

func NewClientIDSuffixAuthorizer

func NewClientIDSuffixAuthorizer(trustedClientIDSuffix string, level web.AccessLevel) httpsec.Authorizer

NewClientIDSuffixAuthorizer returns OAuth authorizer

func NewOauthClientAuthorizer

func NewOauthClientAuthorizer(clientID string, level web.AccessLevel) http.Authorizer

func NewScopesAuthorizer

func NewScopesAuthorizer(scopes []string, level web.AccessLevel) httpsec.Authorizer

func PrefixScopes

func PrefixScopes(space string, scopes ...string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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