auth

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 11 Imported by: 3 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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