Documentation ¶
Index ¶
- Constants
- Variables
- func AuthFromMD(ctx context.Context, expectedScheme string) (string, error)
- func AuthFunction(ctx context.Context, jwtValidator *validator.Validator, config *config.Config) (ctxResult context.Context, err 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 NamespaceSetter
- type TokenCtxkey
- type User
Constants ¶
View Source
const (
CookieMaxAgeKey = "Expires"
)
View Source
const (
TigrisStreamSpan string = "rpcstream"
)
Variables ¶
View Source
var ( UnknownNamespace = "unknown" BypassAuthForTheseMethods = set.New("/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 AuthFunction ¶
func Get ¶
func Get(config *config.Config, tenantMgr *metadata.TenantManager, txMgr *transaction.Manager) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
Types ¶
type CustomClaim ¶
type NamespaceSetter ¶
type NamespaceSetter struct {
// contains filtered or unexported fields
}
func (*NamespaceSetter) NamespaceSetterStreamServerInterceptor ¶
func (r *NamespaceSetter) NamespaceSetterStreamServerInterceptor() grpc.StreamServerInterceptor
func (*NamespaceSetter) NamespaceSetterUnaryServerInterceptor ¶
func (r *NamespaceSetter) NamespaceSetterUnaryServerInterceptor() func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
type TokenCtxkey ¶
type TokenCtxkey struct{}
Click to show internal directories.
Click to hide internal directories.