Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizationRequiredInterceptor ¶
func AuthorizationRequiredInterceptor(logger *zap.Logger, policyVerifier authz.Verifier, o ...containers.Option[InterceptorOptions]) grpc.UnaryServerInterceptor
func WithServerSkipsAuthorization ¶
func WithServerSkipsAuthorization(server any) containers.Option[InterceptorOptions]
WithServerSkipsAuthorization can be used to configure an auth unary interceptor which skips authorization when the provided server instance matches the intercepted calls parent server instance. This allows the caller to registers servers which explicitly skip authorization (e.g. OIDC).
Types ¶
type InterceptorOptions ¶
type InterceptorOptions struct {
// contains filtered or unexported fields
}
InterceptorOptions configure the basic AuthzUnaryInterceptors
type SkipsAuthorizationServer ¶
SkipsAuthorizationServer is a grpc.Server which should always skip authentication.
Click to show internal directories.
Click to hide internal directories.