authz

package
v0.23.9 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 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 HasScope added in v0.10.0

func HasScope(user *web.UserContext, scope string) (bool, error)

Checks whether the user has the requested scope

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 NewClientIDSuffixesAuthorizer added in v0.15.0

func NewClientIDSuffixesAuthorizer(trustedClientIDSuffixes []string, level web.AccessLevel) httpsec.Authorizer

NewClientIDSuffixesAuthorizer 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