oidc

package
v0.3.45 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientCredentialsDetails

type ClientCredentialsDetails struct {
	ProviderUrl  string
	ClientId     string
	ClientSecret string
	Scopes       []string
}

type ClientPasswordDetails

type ClientPasswordDetails struct {
	ProviderUrl string
	ClientId    string
	Scopes      []string
	Username    string
	Password    string
}

type DeviceDetails added in v0.1.35

type DeviceDetails struct {
	ProviderUrl string
	ClientId    string
	Scopes      []string
}

type FunctionTokenSource added in v0.3.33

type FunctionTokenSource struct {
	GetToken func() (*oauth2.Token, error)
}

func (*FunctionTokenSource) Token added in v0.3.33

func (f *FunctionTokenSource) Token() (*oauth2.Token, error)

type KubernetesDetails added in v0.3.6

type KubernetesDetails struct {
	ProviderUrl string
	ClientId    string
	Scopes      []string
}

type PKCEDetails

type PKCEDetails struct {
	ProviderUrl string
	ClientId    string
	LocalPort   uint16
	Scopes      []string
}

type TokenCredentials

type TokenCredentials struct {
	TokenSource oauth2.TokenSource
}

func AuthenticateDevice added in v0.1.35

func AuthenticateDevice(config DeviceDetails) (*TokenCredentials, error)

func AuthenticateKubernetes added in v0.3.6

func AuthenticateKubernetes(config KubernetesDetails) (*TokenCredentials, error)

func AuthenticatePkce

func AuthenticatePkce(config PKCEDetails) (*TokenCredentials, error)

func AuthenticateWithClientCredentials

func AuthenticateWithClientCredentials(config ClientCredentialsDetails) (*TokenCredentials, error)

func AuthenticateWithPassword

func AuthenticateWithPassword(config ClientPasswordDetails) (*TokenCredentials, error)

func (*TokenCredentials) GetRequestMetadata

func (c *TokenCredentials) GetRequestMetadata(context.Context, ...string) (map[string]string, error)

func (*TokenCredentials) RequireTransportSecurity

func (c *TokenCredentials) RequireTransportSecurity() bool

Jump to

Keyboard shortcuts

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