maidenlanedauth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthEventStreams

func AuthEventStreams(ctx context.Context) error

AuthEventStreams authorize the whole of event streams

func AuthListAsyncReplies

func AuthListAsyncReplies(ctx context.Context) error

AuthListAsyncReplies authorize the listing or searching of all replies

func AuthRPC

func AuthRPC(ctx context.Context, method string, args ...interface{}) error

AuthRPC authorize an RPC call

func AuthRPCSubscribe

func AuthRPCSubscribe(ctx context.Context, namespace string, channel interface{}, args ...interface{}) error

AuthRPCSubscribe authorize a subscribe RPC call

func AuthReadAsyncReplyByUUID

func AuthReadAsyncReplyByUUID(ctx context.Context) error

AuthReadAsyncReplyByUUID authorize the query of an invidual reply by UUID

func GetAccessToken

func GetAccessToken(ctx context.Context) string

GetAccessToken extracts a previously stored access token

func GetAuthContext

func GetAuthContext(ctx context.Context) interface{}

GetAuthContext extracts a previously stored auth context from the context

func IsSystemContext

func IsSystemContext(ctx context.Context) bool

IsSystemContext checks if a context was created as a system context

func NewSystemAuthContext

func NewSystemAuthContext() context.Context

NewSystemAuthContext creates a system background context

func RegisterSecurityModule

func RegisterSecurityModule(sm maidenlanedplugins.SecurityModule)

RegisterSecurityModule is the plug point to register a security module

func WithAuthContext

func WithAuthContext(ctx context.Context, token string) (context.Context, error)

WithAuthContext adds an access token to a base context

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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