Documentation
¶
Index ¶
- type Command
- type OAuthConfig
- type Service
- func (s *Service) Authorize(ctx context.Context, command *Command) (*oauth2.Token, error)
- func (s *Service) EnsureConfig(ctx context.Context, config *OAuthConfig) error
- func (s *Service) IDClient(ctx context.Context, command *Command) (*http.Client, error)
- func (s *Service) RefreshToken(ctx context.Context, refreshToken *oauth2.Token, config *OAuthConfig) (*oauth2.Token, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct {
OAuthConfig
AuthFlow string `json:"authFlow"`
Scopes []string `json:"scopes"`
Secrets map[string]string `json:"secrets"`
SecretsURL string `json:"secretsURL"`
UsePKCE bool `json:"usePKCE"`
NewEndpoint func() (flow.Endpoint, error) `json:"-" yaml:"-"`
}
Command represents a command to authorize
type OAuthConfig ¶ added in v0.23.0
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is a secretsService that provides authorization functionality
func (*Service) EnsureConfig ¶ added in v0.23.0
func (s *Service) EnsureConfig(ctx context.Context, config *OAuthConfig) error
Click to show internal directories.
Click to hide internal directories.