common

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: use core error.
	ErrKey = errors.New("key error")
)

Functions

func Authorization

func Authorization(config *oauth2.Config, parameters *types.AuthorizationParamters, requestParameters []oauth2.AuthCodeOption) string

Authorization gets the oauth2 authorization URL.

func CodeExchange

func CodeExchange(ctx context.Context, client client.Client, parameters *types.CodeExchangeParameters) (*oauth2.Token, error)

CodeExchange exchanges a code with an oauth2 server.

func Config

func Config(ctx context.Context, cli client.Client, parameters *types.ConfigParameters, scopes []string) (*oauth2.Config, error)

Config returns an oauth2 configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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