oauthtokenretriever

package
v0.94.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppURL        = "GF_APP_URL"
	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