oidc

package
v0.3.27 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 21 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 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 {
	// contains filtered or unexported fields
}

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