auth

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TENANT_CLAIM = Claims("tenantId")
View Source
var USER_ID_CLAIM = Claims("userId")
View Source
var USER_TYPE_CLAIM = Claims("userType")

Functions

func GetToken

func GetToken(tenant, userId, userType string) (string, error)

func GetUserIdAndTenant

func GetUserIdAndTenant(ctx context.Context) (string, string)

func GetUserType added in v0.1.42

func GetUserType(ctx context.Context) string

func VerifyTokenGrpcMiddleware added in v1.0.39

func VerifyTokenGrpcMiddleware() grpc_auth.AuthFunc

func VerifyTokenHttpMiddleware added in v1.0.39

func VerifyTokenHttpMiddleware(next http.HandlerFunc) http.HandlerFunc

Types

type Claims

type Claims string

Jump to

Keyboard shortcuts

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