authverify

package
v3.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAccessV3

func CheckAccessV3(ctx context.Context, ownerUserID string, config *config.GlobalConfig) (err error)

func CheckAdmin

func CheckAdmin(ctx context.Context, config *config.GlobalConfig) error

func CheckIMAdmin added in v3.5.0

func CheckIMAdmin(ctx context.Context, config *config.GlobalConfig) error

func IsAppManagerUid

func IsAppManagerUid(ctx context.Context, config *config.GlobalConfig) bool

func IsManagerUserID

func IsManagerUserID(opUserID string, config *config.GlobalConfig) bool

func ParseRedisInterfaceToken

func ParseRedisInterfaceToken(redisToken any, secret string) (*tokenverify.Claims, error)

func Secret

func Secret(secret string) jwt.Keyfunc

func WsVerifyToken

func WsVerifyToken(token, userID, secret string, platformID int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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