client

package
v0.0.0-...-7bf56e6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 14 Imported by: 7

Documentation

Overview

Package client implements OAuth2 authentication for outbound connections from Appengine using the application services account.

Deprecated: use go.chromium.org/luci/server/auth APIs instead.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessToken

func GetAccessToken(ctx context.Context, scopes []string) (*oauth2.Token, error)

GetAccessToken returns an OAuth access token representing app's service account.

If scopes is empty, uses auth.OAuthScopeEmail scope.

Implements a caching layer on top of GAE's GetAccessToken RPC. May return transient errors.

func NewTokenSource

func NewTokenSource(ctx context.Context, scopes []string) oauth2.TokenSource

NewTokenSource makes oauth2.TokenSource implemented on top of GetAccessToken.

It is bound to the given context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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