oauth

package
v1.65.1 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 13 Imported by: 3 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthStyleAutoDetect = AuthStyle(oauth2.AuthStyleAutoDetect)
View Source
var AuthStyleInHeader = AuthStyle(oauth2.AuthStyleInHeader)
View Source
var AuthStyleInParams = AuthStyle(oauth2.AuthStyleInParams)

Functions

func NewOauthTransport

func NewOauthTransport(config OauthConfig) *oauthRoundTripper

Types

type AuthStyle

type AuthStyle oauth2.AuthStyle

type OauthConfig

type OauthConfig struct {
	ClientID     string
	ClientSecret string
	TokenURL     string
	Scopes       []string
	Params       map[string]string
	AuthStyle    AuthStyle
	Tracer       func(msg string)
	// TokenTransport wraps the HTTP transport used for OAuth token requests.
	// When set, the token fetch HTTP call is routed through this middleware,
	// allowing HAR capture of the token request without a circular import.
	TokenTransport middlewares.Middleware
}

func (*OauthConfig) AuthStyleInHeader

func (c *OauthConfig) AuthStyleInHeader() *OauthConfig

func (*OauthConfig) AuthStyleInParams

func (c *OauthConfig) AuthStyleInParams() *OauthConfig

func (OauthConfig) Pretty

func (c OauthConfig) Pretty() api.Text

func (OauthConfig) String

func (c OauthConfig) String() string

Jump to

Keyboard shortcuts

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