oauthtokenretriever

package
v0.197.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppClientID   = "GF_PLUGIN_APP_CLIENT_ID"
	AppPrivateKey = "GF_PLUGIN_APP_PRIVATE_KEY"
	// nolint:gosec
	// AppClientSecret constant represents a string index value for the secret, not the secret itself.
	AppClientSecret = "GF_PLUGIN_APP_CLIENT_SECRET"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenRetriever

type TokenRetriever interface {
	OnBehalfOfUser(ctx context.Context, userID string) (string, error)
	Self(ctx context.Context) (string, error)
}

func New

func New() (TokenRetriever, error)

Jump to

Keyboard shortcuts

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