Documentation ¶
Index ¶
- Constants
- Variables
- func AuthFromMD(ctx context.Context, expectedScheme string) (string, error)
- func Get(config *config.Config, tenantMgr *metadata.TenantManager, ...) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
- func GetJWTValidator(config *config.Config) *validator.Validator
- type CustomClaim
- type Forwarder
- type Namespace
- type TokenCtxkey
- type User
Constants ¶
View Source
const (
CookieMaxAgeKey = "Expires"
)
View Source
const (
TigrisStreamSpan string = "rpcstream"
)
Variables ¶
View Source
var ( UnknownNamespace = "unknown" BypassAuthForTheseMethods = container.NewHashSet( "/HealthAPI/Health", "/tigrisdata.auth.v1.Auth/getAccessToken", "/grpc.reflection.v1alpha.ServerReflection/ServerReflectionInfo", ) )
View Source
var ( DefaultTimeout = 2 * time.Second MaximumTimeout = 5 * time.Second )
View Source
var OutgoingHeaders = metadata.New(map[string]string{})
View Source
var (
UserAgent = "tigris-forwarder/" + util.Version
)
Functions ¶
func Get ¶
func Get(config *config.Config, tenantMgr *metadata.TenantManager, txMgr *transaction.Manager) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
Types ¶
type CustomClaim ¶
type TokenCtxkey ¶
type TokenCtxkey struct{}
Click to show internal directories.
Click to hide internal directories.