auth

package
v0.0.0-...-a36dcc1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthOptions

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

func GetAuthOptions

func GetAuthOptions(opts ...Option) *AuthOptions

func (*AuthOptions) CreateTlsConfiguration

func (opts *AuthOptions) CreateTlsConfiguration() (t *tls.Config)

func (*AuthOptions) InitSASLSCRAM

func (opts *AuthOptions) InitSASLSCRAM(conf *sarama.Config)

func (*AuthOptions) InitSSL

func (opts *AuthOptions) InitSSL(config *sarama.Config)

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithAuthentication

func WithAuthentication(authentication string) Option

func WithEnableSASL

func WithEnableSASL(enableSASL bool) Option

func WithEnableSSL

func WithEnableSSL(enableSSL bool) Option

func WithSASLPassword

func WithSASLPassword(saslPassword string) Option

func WithSASLUser

func WithSASLUser(saslUser string) Option

func WithSSLCaFile

func WithSSLCaFile(caFile string) Option

func WithSSLCertFile

func WithSSLCertFile(certFile string) Option

func WithSSLKeyFile

func WithSSLKeyFile(keyFile string) Option

func WithScramAlgorithm

func WithScramAlgorithm(scramAlgorithm string) Option

type XDGSCRAMClient

type XDGSCRAMClient struct {
	*scram.Client
	*scram.ClientConversation
	scram.HashGeneratorFcn
}

func (*XDGSCRAMClient) Begin

func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)

func (*XDGSCRAMClient) Done

func (x *XDGSCRAMClient) Done() bool

func (*XDGSCRAMClient) Step

func (x *XDGSCRAMClient) Step(challenge string) (response string, err error)

Jump to

Keyboard shortcuts

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