oauth2client

package
v2.16.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Namespace = "github.com/devopsfaith/krakend-oauth2-clientcredentials"

Namespace is the key to use to store and access the custom config data

Variables

View Source
var ZeroCfg = Config{}

ZeroCfg is the zero value for the Config struct

Functions

func NewHTTPClient

func NewHTTPClient(cfg *config.Backend) client.HTTPClientFactory

NewHTTPClient creates a HTTPClientFactory with an http client configured for dealing with all the logic related to the oauth2 client credentials grant

Types

type Config

type Config struct {
	IsDisabled     bool
	ClientID       string
	ClientSecret   string
	TokenURL       string
	Scopes         string
	EndpointParams map[string][]string
}

Config is the custom config struct containing the params for the golang.org/x/oauth2/clientcredentials package

Jump to

Keyboard shortcuts

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