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 NewClientCredentials ¶
func NewClientCredentials(ctx context.Context, opts ClientCredentialsOptions) (*ClientCredentials, error)
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.
Click to show internal directories.
Click to hide internal directories.