authtest

package
v0.9.20 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestSecurityModule

type TestSecurityModule struct{}

TestSecurityModule designed for unit testing - does not implement security

func (*TestSecurityModule) AuthEventStreams

func (sm *TestSecurityModule) AuthEventStreams(authCtx interface{}) error

AuthEventStreams of TEST MODULE returns true if there is an auth context

func (*TestSecurityModule) AuthListAsyncReplies

func (sm *TestSecurityModule) AuthListAsyncReplies(authCtx interface{}) error

AuthListAsyncReplies of TEST MODULE returns true if there is an auth context

func (*TestSecurityModule) AuthRPC

func (sm *TestSecurityModule) AuthRPC(authCtx interface{}, method string, _ ...interface{}) error

AuthRPC of TEST MODULE checks if a token matches a fixed string

func (*TestSecurityModule) AuthRPCSubscribe

func (sm *TestSecurityModule) AuthRPCSubscribe(authCtx interface{}, namespace string, _ interface{}, _ ...interface{}) error

AuthRPCSubscribe of TEST MODULE checks if a namespace matches a fixed string

func (*TestSecurityModule) AuthReadAsyncReplyByUUID

func (sm *TestSecurityModule) AuthReadAsyncReplyByUUID(authCtx interface{}) error

AuthReadAsyncReplyByUUID of TEST MODULE returns true if there is an auth context

func (*TestSecurityModule) VerifyToken

func (sm *TestSecurityModule) VerifyToken(tok string) (interface{}, error)

VerifyToken of TEST MODULE checks if a token matches a fixed string

Jump to

Keyboard shortcuts

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