authorizer

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	AuthFlow  string         `json:"authFlow"`
	Config    *oauth2.Config `json:"config"`
	ConfigURL string         `json:"configURL"`

	Scopes     []string          `json:"scopes"`
	Secrets    map[string]string `json:"secrets"`
	SecretsURL string            `json:"secretsURL"`
	UsePKCE    bool              `json:"usePKCE"`
}

Command represents a command to authorize

type Service

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

Service is a secretsService that provides authorization functionality

func New

func New() *Service

func (*Service) Authorize

func (s *Service) Authorize(ctx context.Context, command *Command) (*oauth2.Token, error)

Authorize authorizes a command using the provided context and command

Jump to

Keyboard shortcuts

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