clientcredentials

package
v2.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package clientcredentials implements the API client credentials access method.

API client credentials are an identifier and secret issued to a single account to access the API, commonly used for authenticating automated systems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ID     string // Client identifier in the form cli-xxxxx.
	Secret string // Randomly generated secret associate with the client ID.
	endpoint.Config
}

Config includes the items necessary to authenticate using client credentials.

func (*Config) Client

func (c *Config) Client(ctx context.Context) (*http.Client, oauth2.TokenSource, error)

Client implements the [brightbox.Oauth2] access interface.

Jump to

Keyboard shortcuts

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