oauth

package
v0.0.0-...-adf2f75 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTokenProvider

func NewTokenProvider(ctx context.Context,
	clientID string,
	clientSecret string,
	tokenURL string,
	scopes []string) sarama.AccessTokenProvider

Types

type TokenProvider

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

TokenProvider encapsulates oauth2.TokenSource and returns sarama.AccessToken

func (*TokenProvider) Token

func (t *TokenProvider) Token() (*sarama.AccessToken, error)

Token fetches token from the token source

Jump to

Keyboard shortcuts

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