oauth2

package
v1.13.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCredentials

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

ClientCredentials is an OAuth2 Token Source that uses the client_credentials grant type to fetch a token.

func (*ClientCredentials) Token

func (c *ClientCredentials) Token() (string, error)

type ClientCredentialsMetadata

type ClientCredentialsMetadata struct {
	TokenCAPEM   string   `mapstructure:"oauth2TokenCAPEM"`
	TokenURL     string   `mapstructure:"oauth2TokenURL"`
	ClientID     string   `mapstructure:"oauth2ClientID"`
	ClientSecret string   `mapstructure:"oauth2ClientSecret"`
	Audiences    []string `mapstructure:"oauth2Audiences"`
	Scopes       []string `mapstructure:"oauth2Scopes"`
}

ClientCredentialsMetadata is the metadata fields which can be used by a component to configure an OIDC client_credentials token source.

type ClientCredentialsOptions

type ClientCredentialsOptions struct {
	Logger       logger.Logger
	TokenURL     string
	ClientID     string
	ClientSecret string
	Scopes       []string
	Audiences    []string
	CAPEM        []byte
}

Jump to

Keyboard shortcuts

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