Documentation ¶
Index ¶
- Variables
- func ClientConnIncomingContext(serverRuntimeContext context.Context) func(ctx context.Context) (context.Context, bool, error)
- func HttpWrapperJWT(ctx context.Context, h http.Handler) http.Handler
- func HttpWrapperPolicy(ctx context.Context, h http.Handler) http.Handler
- func RegistryIncomingContext(serverRuntimeContext context.Context) func(ctx context.Context) (context.Context, bool, error)
- func TargetNameToServiceNameContext(serverRuntimeContext context.Context) func(ctx context.Context) (context.Context, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // HTTPMetaJwtClientApp constant HTTPMetaJwtClientApp = "JwtClientApp" // HTTPMetaJwtIssuer constant HTTPMetaJwtIssuer = "JwtIssuer" )
Functions ¶
func ClientConnIncomingContext ¶
func ClientConnIncomingContext(serverRuntimeContext context.Context) func(ctx context.Context) (context.Context, bool, error)
ClientConnIncomingContext adds the ClientConn to context
func HttpWrapperJWT ¶
HttpWrapperJWT captures and verifies a JWT token if it's present in the headers. Warning: it goes through if there is no JWT => the next handlers must verify if a valid user was found or not.
func HttpWrapperPolicy ¶
HttpWrapperPolicy applies relevant policy rules and blocks the request if necessary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.