oidcprovider

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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 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