Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SHA256 scram.HashGeneratorFcn = sha256.New
SHA256 hash generator function for SCRAM conversation
View Source
var SHA512 scram.HashGeneratorFcn = sha512.New
SHA512 hash generator function for SCRAM conversation
Functions ¶
This section is empty.
Types ¶
type TokenProvider ¶
type TokenProvider interface { sarama.AccessTokenProvider String() string }
func OAuthBearerTokenProvider ¶
func OAuthBearerTokenProvider(clientID, clientSecret, tokenURL string, scopes []string, extensions map[string]string) TokenProvider
func OAuthMSKTokenProvider ¶ added in v2.14.1
func OAuthMSKTokenProvider(cfg *aws.Config) TokenProvider
type XDGSCRAMClient ¶
type XDGSCRAMClient struct { *scram.Client *scram.ClientConversation scram.HashGeneratorFcn }
XDGSCRAMClient struct to perform SCRAM conversation
func (*XDGSCRAMClient) Begin ¶
func (x *XDGSCRAMClient) Begin(userName, password, authzID string) (err error)
Begin starts SCRAM conversation
func (*XDGSCRAMClient) Done ¶
func (x *XDGSCRAMClient) Done() bool
Done completes SCRAM conversation
Click to show internal directories.
Click to hide internal directories.