oidcprovider

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOK               = 0
	StatusGetTokenFailed   = 1
	StatusParseTokenFailed = 2
)

Variables

This section is empty.

Functions

func NewPasswordGrantSource added in v0.2.9

func NewPasswordGrantSource(credentialsFile string, targetAudience string) (*passwordGrantSource, error)

func NewServiceAccountSource

func NewServiceAccountSource(credentialsFile string, targetAudience string) (*serviceAccountSource, error)

Types

type Factory

type Factory struct {
}

Factory type

func (*Factory) New

func (t *Factory) New(params []string) (apis.TokenProvider, error)

New implements apis.TokenProviderFactory

type GrantType added in v0.2.9

type GrantType struct {
	Name string `json:"grant_type"`
}

type TokenProvider

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

TokenProvider - represents TokenProvider

func NewTokenProvider

func NewTokenProvider(options TokenProviderOptions) (*TokenProvider, error)

NewTokenProvider - Generate new OIDC token provider

func (*TokenProvider) GetToken

GetToken implements apis.TokenProvider.GetToken method

type TokenProviderOptions

type TokenProviderOptions struct {
	Timeout int

	CredentialsWatch bool
	CredentialsFile  string
	TargetAudience   string
}

TokenProviderOptions - options specific for oidc

type TokenRefresher

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

TokenRefresher - struct providing refreshing of tokens

Jump to

Keyboard shortcuts

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