Documentation
¶
Index ¶
Constants ¶
View Source
const ( // JwtCtxKey is the key used to store the JWT (raw) string in the context JwtCtxKey = "as-jwt-token" // UserCtxKey is the key used to store the user in the context UserCtxKey = "x-user" // ImpersonatingUserKeyName is the key used to store the impersonating (real) // user in the context ImpersonatingUserKeyName = "x-real-user" // TenantCtxKey is the key used to store the tenant in the context. If present // it will be used in case the user is not present. TenantCtxKey = "x-tenant" // DefaultTenant is the tenant to use if no tenant is found in the context DefaultTenant = "default" )
Variables ¶
This section is empty.
Functions ¶
func TenantOrDefault ¶
TenantOrDefault returns the tenant from the context if it exists or the default value.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.