Documentation ¶
Index ¶
- Constants
- Variables
- func AuthFromMD(ctx context.Context, expectedScheme string) (string, error)
- func Get(config *config.Config) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
- func GetJWTValidator(config *config.Config) *validator.Validator
- func HTTPAuthMiddleware(config *config.Config) func(http.Handler) http.Handler
- func HTTPMetadataExtractorMiddleware(_ *config.Config) func(http.Handler) http.Handler
- 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 ( OutgoingHeaders = metadata.New(map[string]string{}) OutgoingStreamHeaders = metadata.New(map[string]string{}) )
View Source
var ( DefaultTimeout = 2 * time.Second MaximumTimeout = 5 * time.Second )
View Source
var ( BypassAuthForTheseMethods = container.NewHashSet( api.HealthMethodName, api.GetAccessTokenMethodName, ) )
View Source
var UserAgent = "tigris-forwarder/" + util.Version
Functions ¶
func Get ¶
func Get(config *config.Config) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
func HTTPAuthMiddleware ¶
Types ¶
type CustomClaim ¶
type TokenCtxkey ¶
type TokenCtxkey struct{}
Click to show internal directories.
Click to hide internal directories.