Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultTokenSourceWithProactiveCache ¶
func DefaultTokenSourceWithProactiveCache(ctx context.Context, scopes ...string) (oauth2.TokenSource, error)
DefaultTokenSourceWithProactiveCache returns the token source for "Application Default Credentials". It is a shortcut for FindDefaultCredentials(ctx, scope).TokenSource.
Types ¶
type ProactiveCacheTokenSource ¶
type ProactiveCacheTokenSource struct {
// contains filtered or unexported fields
}
func NewProactiveCacheTokenSource ¶
func NewProactiveCacheTokenSource(ts oauth2.TokenSource, cfg Config) (*ProactiveCacheTokenSource, error)
func (*ProactiveCacheTokenSource) Run ¶
func (s *ProactiveCacheTokenSource) Run(ctx context.Context)
type TokenOption ¶
type TokenOption func(opt *tokenOption)
TokenOption provides ability to configure the google TokenSource to issue Google ID Tokens.
Click to show internal directories.
Click to hide internal directories.