oauth

package
v0.0.0-...-9823ec8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package oauth add support for auth2 client credentials grant to the Sonic API Gateway

Index

Constants

View Source
const Namespace = "github.com/starvn/auth/oauth"

Variables

View Source
var ZeroCfg = Config{}

Functions

func NewHTTPClient

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

Types

type Config

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

Jump to

Keyboard shortcuts

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