auth

package
v3.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssembleClientCredentials

func AssembleClientCredentials(clientId, clientSecret string) *oauth2.Config

func FileSource

func FileSource(path string, token *oauth2.Token, conf *oauth2.Config) oauth2.TokenSource

func NewAccessTokenClient

func NewAccessTokenClient(conf *oauth2.Config, accessToken string) *http.Client

func NewFileSourceClient

func NewFileSourceClient(conf *oauth2.Config, tokenFile string, authFn authCodeFn) (*http.Client, error)

func NewRefreshTokenClient

func NewRefreshTokenClient(conf *oauth2.Config, refreshToken string) *http.Client

func NewServiceAccountClient

func NewServiceAccountClient(serviceAccountFile string) (*http.Client, error)

func ReadClientCredentials

func ReadClientCredentials(path string) (*oauth2.Config, bool, error)

func ReadFile

func ReadFile(path string) ([]byte, bool, error)

func ReadToken

func ReadToken(path string) (*oauth2.Token, bool, error)

func SaveToken

func SaveToken(path string, token *oauth2.Token) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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