Documentation ¶
Index ¶
- func DexLoginInterceptor(w http.ResponseWriter, req *http.Request, httpHandler handler.Server, ...)
- func StreamAuthInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, ...) error
- func UnaryAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DexLoginInterceptor ¶
func DexLoginInterceptor( w http.ResponseWriter, req *http.Request, httpHandler handler.Server, clientID, baseURL string, )
DexLoginInterceptor intercepts HTTP calls to the frontend service. DexLoginInterceptor must only be used if dex is enabled. If the user us not logged in, it redirected the calls to the Dex login page. If the user is already logged in, proceeds with the request.
func StreamAuthInterceptor ¶
func StreamAuthInterceptor( srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler, jwks *keyfunc.JWKS, clientId string, tenantId string, ) error
func UnaryAuthInterceptor ¶
func UnaryAuthInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, jwks *keyfunc.JWKS, clientId string, tenantId string) (interface{}, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.