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()
}
type ILicenseInterceptor ¶
type ILicenseInterceptor interface { UnaryServerInterceptor() grpc.UnaryServerInterceptor StreamServerInterceptor() grpc.StreamServerInterceptor }
func NewLicenseInterceptor ¶
func NewLicenseInterceptor(licenseInterserviceClient license_control.LicenseControlServiceClient) ILicenseInterceptor
type IntrospectionHandler ¶
type LicenseStatus ¶
type LicenseStatus struct { //LicenseDetails information regarding license LicenseDetails *license_middleware.LicenseDetails //Till When the details are valid DetailsValidity time.Time //LicenseDetailsRefresh hard refresh details even if the DetailsValidity is valid LicenseDetailsRefresh bool }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.