Documentation
¶
Index ¶
- Variables
- func GetToken(tenant, userId, userType string) (string, error)
- func GetUserIdAndTenant(ctx context.Context) (string, string)
- func GetUserType(ctx context.Context) string
- func VerifyTokenGrpcMiddleware() grpc_auth.AuthFunc
- func VerifyTokenHttpMiddleware(next http.HandlerFunc) http.HandlerFunc
- type Claims
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 GetUserType ¶ added in v0.1.42
func VerifyTokenGrpcMiddleware ¶ added in v1.0.39
func VerifyTokenHttpMiddleware ¶ added in v1.0.39
func VerifyTokenHttpMiddleware(next http.HandlerFunc) http.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.