credentials

package
v0.17.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder func(clientID string) TransportCredentials

type ClientSecretPost added in v0.17.2

type ClientSecretPost struct {
	ClientID     string
	ClientSecret string
}

func NewClientSecretPost added in v0.17.2

func NewClientSecretPost(clientID, clientSecret string) *ClientSecretPost

NewClientSecretPost returns a credentials implementation that follows the client authentication method 'client_secret_post', defined by the OIDC specification: https://openid.net/specs/openid-connect-core-1_0.html#ClientAuthentication

func (*ClientSecretPost) Transport added in v0.17.2

func (c *ClientSecretPost) Transport() http.RoundTripper

type Insecure added in v0.17.2

type Insecure struct {
	// contains filtered or unexported fields
}

func (*Insecure) Transport added in v0.17.2

func (c *Insecure) Transport() http.RoundTripper

type TLS

type TLS struct {
	ClientID  string
	TLSConfig *tls.Config
}

func NewTLS

func NewTLS(clientID string, tlsConfig *tls.Config) *TLS

func (*TLS) Transport

func (c *TLS) Transport() http.RoundTripper

type TransportCredentials

type TransportCredentials interface {
	Transport() http.RoundTripper
}

func NewInsecure added in v0.17.2

func NewInsecure(clientID string) TransportCredentials

Jump to

Keyboard shortcuts

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