Documentation
¶
Overview ¶
Package session provides the service.module.grpc.session module: a gRPC service module that registers the kms.api.cmk.sessionmanager.session.v1.Service proto onto a grpc.ServiceRegistrar supplied by app.module.grpcserver.
Index ¶
- type Module
- type Option
- type Server
- func (s *Server) GetOIDCProvider(ctx context.Context, req *sessionv1.GetOIDCProviderRequest) (*sessionv1.GetOIDCProviderResponse, error)
- func (s *Server) GetSession(ctx context.Context, req *sessionv1.GetSessionRequest) (*sessionv1.GetSessionResponse, error)
- func (s *Server) GetTrust(ctx context.Context, req *sessionv1.GetTrustRequest) (*sessionv1.GetTrustResponse, 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"`
SessionStore string `yaml:"sessionStore" default:"sessionstore.module.valkey" dep:"session.Repository"`
Credentials string `yaml:"credentials" default:"credentials.module.oauth2" dep:"credentials.Builder"`
AllowHttpScheme bool `yaml:"allowHttpScheme"`
QueryParametersIntrospect []string `yaml:"queryParametersIntrospect"`
// contains filtered or unexported fields
}
Module is the service.module.grpc.session module. It wires its three dependencies (trust, session store, credentials) by ID via ctx.GetModule and owns a *Server that implements the proto.
func (*Module) Module ¶
func (m *Module) Module() sessionmanager.ModuleInfo
func (*Module) Register ¶
func (m *Module) Register(s grpc.ServiceRegistrar)
type Option ¶
type Option func(*Server)
func WithAllowHttpScheme ¶
func WithTransportCredentials ¶
func WithTransportCredentials(b credentials.Builder) Option
type Server ¶
type Server struct {
sessionv1.UnimplementedServiceServer
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( ctx context.Context, sessionRepo internalsession.Repository, trust sessionmanager.Trust, idleSessionTimeout time.Duration, opts ...Option, ) *Server
func (*Server) GetOIDCProvider ¶
func (s *Server) GetOIDCProvider(ctx context.Context, req *sessionv1.GetOIDCProviderRequest) (*sessionv1.GetOIDCProviderResponse, error)
GetOIDCProvider implements a compatibility level with the OIDC API. Deprecated: use GetTrust instead. TODO: remove this method once the lifecycle of deprecated and compatibility layers is reached to the end.
func (*Server) GetSession ¶
func (s *Server) GetSession(ctx context.Context, req *sessionv1.GetSessionRequest) (*sessionv1.GetSessionResponse, error)
func (*Server) GetTrust ¶
func (s *Server) GetTrust(ctx context.Context, req *sessionv1.GetTrustRequest) (*sessionv1.GetTrustResponse, error)
Click to show internal directories.
Click to hide internal directories.