Documentation
¶
Overview ¶
Package oidcmapping provides the service.module.grpc.oidcmapping module: a gRPC service module that registers the legacy kms.api.cmk.sessionmanager.oidcmapping.v1.Service proto onto a grpc.ServiceRegistrar supplied by app.module.grpcserver. It exists for backward compatibility with clients that have not migrated to the kms.api.cmk.sessionmanager.trustmapping.v1.Service proto.
Index ¶
- type Module
- type Server
- func (srv *Server) ApplyOIDCMapping(ctx context.Context, req *oidcmappingv1.ApplyOIDCMappingRequest) (*oidcmappingv1.ApplyOIDCMappingResponse, error)
- func (srv *Server) BlockOIDCMapping(ctx context.Context, req *oidcmappingv1.BlockOIDCMappingRequest) (*oidcmappingv1.BlockOIDCMappingResponse, error)
- func (srv *Server) RemoveOIDCMapping(ctx context.Context, req *oidcmappingv1.RemoveOIDCMappingRequest) (*oidcmappingv1.RemoveOIDCMappingResponse, error)
- func (srv *Server) UnblockOIDCMapping(ctx context.Context, req *oidcmappingv1.UnblockOIDCMappingRequest) (*oidcmappingv1.UnblockOIDCMappingResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module struct {
Mod string `yaml:"module"`
Trust string `yaml:"trust" default:"trust.module.oidc" dep:"sessionmanager.Trust"`
// contains filtered or unexported fields
}
Module is the service.module.grpc.oidcmapping module. It owns a Server that adapts the legacy oidcmapping proto onto sessionmanager.Trust and resolves its single dependency by ID via ctx.GetModule.
func (*Module) Module ¶
func (m *Module) Module() sessionmanager.ModuleInfo
func (*Module) Register ¶
func (m *Module) Register(s grpc.ServiceRegistrar)
type Server ¶
type Server struct {
oidcmappingv1.UnimplementedServiceServer
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(trust sessionmanager.Trust) *Server
func (*Server) ApplyOIDCMapping ¶
func (srv *Server) ApplyOIDCMapping(ctx context.Context, req *oidcmappingv1.ApplyOIDCMappingRequest) (*oidcmappingv1.ApplyOIDCMappingResponse, error)
func (*Server) BlockOIDCMapping ¶
func (srv *Server) BlockOIDCMapping(ctx context.Context, req *oidcmappingv1.BlockOIDCMappingRequest) (*oidcmappingv1.BlockOIDCMappingResponse, error)
func (*Server) RemoveOIDCMapping ¶
func (srv *Server) RemoveOIDCMapping(ctx context.Context, req *oidcmappingv1.RemoveOIDCMappingRequest) (*oidcmappingv1.RemoveOIDCMappingResponse, error)
func (*Server) UnblockOIDCMapping ¶
func (srv *Server) UnblockOIDCMapping(ctx context.Context, req *oidcmappingv1.UnblockOIDCMappingRequest) (*oidcmappingv1.UnblockOIDCMappingResponse, error)
Click to show internal directories.
Click to hide internal directories.