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 TigrisClaims
- type TokenCtxkey
- type User
Constants ¶
View Source
const (
CookieMaxAgeKey = "Expires"
)
Variables ¶
View Source
var ( OutgoingHeaders = metadata.New(map[string]string{}) OutgoingStreamHeaders = metadata.New(map[string]string{}) )
View Source
var ( DefaultTimeout = 10 * time.Second MaximumTimeout = 30 * 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 CustomClaim struct { Namespace Namespace `json:"https://tigris/n"` User User `json:"https://tigris/u"` TigrisClaims TigrisClaims `json:"https://tigris"` }
type TigrisClaims ¶
type TokenCtxkey ¶
type TokenCtxkey struct{}
Click to show internal directories.
Click to hide internal directories.