grpcplugin

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

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

type PasswordAuthenticatorClient

type PasswordAuthenticatorClient struct {
	// contains filtered or unexported fields
}

func (*PasswordAuthenticatorClient) CheckPassword

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL