interceptors

package
v1.24.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL