Documentation ¶
Index ¶
- Constants
- Variables
- type AuthenticationCoordinatorClient
- type AuthenticationCoordinatorPlugin
- type AuthenticationCoordinatorServer
- type PasswordAuthenticatorClient
- type PasswordAuthenticatorPlugin
- type PasswordAuthenticatorServer
- type UserProviderClient
- type UserProviderPlugin
- type UserProviderServer
Constants ¶
View Source
const ( RegisterKeyUserProvider = "user_provider" RegisterKeyAuthenticationCoordinator = "authentication_coordinator" RegisterKeyPasswordAuthenticator = "password_authenticator" )
Registration keys for gRPC plugin services.
Variables ¶
View Source
var HandleShake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "DYNA_SPI_PLUGIN",
MagicCookieValue: "dyna",
}
HandleShake is shared between plugin and host. This is not a security feature, but a UX feature.
Functions ¶
This section is empty.
Types ¶
type AuthenticationCoordinatorClient ¶
type AuthenticationCoordinatorClient struct {
// contains filtered or unexported fields
}
func (*AuthenticationCoordinatorClient) NextAuthentication ¶
func (c *AuthenticationCoordinatorClient) NextAuthentication(ctx context.Context, request *spi.NextAuthenticationRequest) (*spi.NextAuthenticationResponse, error)
type AuthenticationCoordinatorPlugin ¶
type AuthenticationCoordinatorPlugin struct { plugin.Plugin Impl spi.AuthenticationCoordinator }
AuthenticationCoordinatorPlugin is the plugin object for spi.AuthenticationCoordinator. It should be registered using RegisterKeyAuthenticationCoordinator.
func (*AuthenticationCoordinatorPlugin) GRPCClient ¶
func (p *AuthenticationCoordinatorPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
func (*AuthenticationCoordinatorPlugin) GRPCServer ¶
func (p *AuthenticationCoordinatorPlugin) GRPCServer(_ *plugin.GRPCBroker, server *grpc.Server) error
type AuthenticationCoordinatorServer ¶
type AuthenticationCoordinatorServer struct { proto.UnimplementedAuthenticationCoordinatorServer Impl spi.AuthenticationCoordinator // contains filtered or unexported fields }
func (*AuthenticationCoordinatorServer) NextAuthentication ¶
func (s *AuthenticationCoordinatorServer) NextAuthentication(ctx context.Context, request *proto.NextAuthenticationRequest) (*proto.NextAuthenticationResponse, error)
type PasswordAuthenticatorClient ¶
type PasswordAuthenticatorClient struct {
// contains filtered or unexported fields
}
func (*PasswordAuthenticatorClient) CheckPassword ¶
func (c *PasswordAuthenticatorClient) CheckPassword(ctx context.Context, request *spi.PasswordAuthenticationRequest) (*spi.PasswordAuthenticationResponse, error)
type PasswordAuthenticatorPlugin ¶
type PasswordAuthenticatorPlugin struct { plugin.Plugin Impl spi.PasswordAuthenticator }
PasswordAuthenticatorPlugin is the plugin object for spi.PasswordAuthenticator. It should be registered using RegisterKeyPasswordAuthenticator.
func (*PasswordAuthenticatorPlugin) GRPCClient ¶
func (p *PasswordAuthenticatorPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
func (*PasswordAuthenticatorPlugin) GRPCServer ¶
func (p *PasswordAuthenticatorPlugin) GRPCServer(_ *plugin.GRPCBroker, server *grpc.Server) error
type PasswordAuthenticatorServer ¶
type PasswordAuthenticatorServer struct { proto.UnimplementedPasswordAuthenticatorServer Impl spi.PasswordAuthenticator // contains filtered or unexported fields }
func (*PasswordAuthenticatorServer) CheckPassword ¶
func (s *PasswordAuthenticatorServer) CheckPassword(ctx context.Context, request *proto.PasswordAuthenticationRequest) (*proto.PasswordAuthenticationResponse, error)
type UserProviderClient ¶
type UserProviderClient struct {
// contains filtered or unexported fields
}
func (*UserProviderClient) GetUser ¶
func (c *UserProviderClient) GetUser(ctx context.Context, request *spi.GetUserRequest) (spi.User, error)
type UserProviderPlugin ¶
type UserProviderPlugin struct { plugin.Plugin Impl spi.UserProvider }
UserProviderPlugin is the plugin object for spi.UserProvider. It should be registered using RegisterKeyUserProvider.
func (*UserProviderPlugin) GRPCClient ¶
func (p *UserProviderPlugin) GRPCClient(_ context.Context, _ *plugin.GRPCBroker, conn *grpc.ClientConn) (interface{}, error)
func (*UserProviderPlugin) GRPCServer ¶
func (p *UserProviderPlugin) GRPCServer(_ *plugin.GRPCBroker, server *grpc.Server) error
type UserProviderServer ¶
type UserProviderServer struct { proto.UnimplementedUserProviderServer Impl spi.UserProvider // contains filtered or unexported fields }
func (*UserProviderServer) GetUser ¶
func (s *UserProviderServer) GetUser(ctx context.Context, request *proto.GetUserRequest) (*proto.GetUserResponse, error)
Click to show internal directories.
Click to hide internal directories.