oauth2

package
v0.0.0-...-d8e376e Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChainedTokenSource

func NewChainedTokenSource(tokenSources ...oauth2.TokenSource) oauth2.TokenSource

NewChainedTokenSource returns a newly initialized ChainedTokenSource struct

Types

type ChainedTokenSource

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

ChainedTokenSource is an implementation of Token Source to try to get a token from multiple TokenSources and returns the first found token

func (*ChainedTokenSource) Token

func (cts *ChainedTokenSource) Token() (*oauth2.Token, error)

Token tries to get a token from each TokenSource and returns the first found token.

Jump to

Keyboard shortcuts

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