Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthorizationHandler ¶
type AuthorizationHandler interface { HTTPAuthorizationHandler GRPCAuthorizationHandler IntrospectionHandler }
type AuthorizationInterceptor ¶
type AuthorizationInterceptor interface { UnaryServerInterceptor() grpc.UnaryServerInterceptor StreamServerInterceptor() grpc.StreamServerInterceptor }
AuthorizationInterceptor abstracts the common logic that can be used for both interceptor types.
func NewAuthInterceptor ¶
func NewAuthInterceptor( authn authn.AuthenticationServiceClient, authz GRPCAuthorizationHandler, ) AuthorizationInterceptor
NewAuthInterceptor returns an AuthInterceptor that performs authentication and authorization for incoming requests. The return function uses the incoming request metadata (from its context), and constructs an authentication request to authn-service's authentication service that uses this metadata as outgoing metadata. If the inquiry's result is an error, it is returned as-is. If it's not, this function returns only the context, and allows for further request processing.
type DeploymentCertAuthOnly ¶
type DeploymentCertAuthOnly interface {
MustUseDeploymentCertAuth()
}
Click to show internal directories.
Click to hide internal directories.