oauth

package
v1.64.2 Latest Latest
Warning

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

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

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