plugins

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HandshakeConfig = plugin.HandshakeConfig{
	ProtocolVersion:  1,
	MagicCookieKey:   "BASIC_PLUGIN",
	MagicCookieValue: "hello",
}

Functions

func InitProviderPlugins

func InitProviderPlugins(name string, arg []string, Logger hclog.Logger) error

func NewProviderPlugin

func NewProviderPlugin(name string, arg []string, Logger hclog.Logger) *plugin.Client

Types

type GRPCClient

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

func (*GRPCClient) GetUserInfo

func (c *GRPCClient) GetUserInfo(ctx context.Context, code string) (*provider.UserInfo, error)

func (*GRPCClient) Init

func (c *GRPCClient) Init(o provider.Oauth2Option)

func (*GRPCClient) NewAuthURL

func (c *GRPCClient) NewAuthURL(ctx context.Context, state string) (string, error)

func (*GRPCClient) Provider

func (c *GRPCClient) Provider() provider.OAuth2Provider

type GRPCServer

func (*GRPCServer) GetUserInfo

func (*GRPCServer) Init

func (*GRPCServer) NewAuthURL

func (*GRPCServer) Provider

type ProviderPlugin

type ProviderPlugin struct {
	plugin.Plugin
	Impl provider.ProviderInterface
}

func (*ProviderPlugin) GRPCClient

func (p *ProviderPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*ProviderPlugin) GRPCServer

func (p *ProviderPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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