Documentation ¶
Index ¶
- type AuthServer
- func (s *AuthServer) Callback(ctx context.Context, req *modoki.CallbackRequest) (*modoki.CallbackResponse, error)
- func (s *AuthServer) IsPrivate(method string) bool
- func (s *AuthServer) SignIn(ctx context.Context, in *modoki.SignInRequest) (*modoki.SignInResponse, error)
- func (s *AuthServer) SignOut(_ context.Context, _ *modoki.SignOutRequest) (*modoki.SignOutResponse, error)
- type ExtAuthZ
- type ServerContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServer ¶
type AuthServer struct {
Context *ServerContext
}
func (*AuthServer) Callback ¶
func (s *AuthServer) Callback(ctx context.Context, req *modoki.CallbackRequest) (*modoki.CallbackResponse, error)
func (*AuthServer) IsPrivate ¶
func (s *AuthServer) IsPrivate(method string) bool
func (*AuthServer) SignIn ¶
func (s *AuthServer) SignIn(ctx context.Context, in *modoki.SignInRequest) (*modoki.SignInResponse, error)
func (*AuthServer) SignOut ¶
func (s *AuthServer) SignOut(_ context.Context, _ *modoki.SignOutRequest) (*modoki.SignOutResponse, error)
type ExtAuthZ ¶
type ExtAuthZ struct { GA *auth.GatewayAuthorizer Context *ServerContext }
func (*ExtAuthZ) Check ¶
func (ea *ExtAuthZ) Check(ctx context.Context, req *extauth.CheckRequest) (*extauth.CheckResponse, error)
Check handles requests from ext_authz in Envoy proxy
type ServerContext ¶
type ServerContext struct { Config *config.Config AppClient api.AppClient UserOrgClient api.UserOrgClient TokenClient api.TokenClient Connector *connector.Connector }
ServerContext contains accessor used by handlers
func NewServerContext ¶
func NewServerContext(cfg *config.Config) (*ServerContext, error)
Click to show internal directories.
Click to hide internal directories.