oauthprompt

package
v0.0.0-...-6ad75e1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2015 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package oauthprompt implements prompting a local user for an OAuth token and caching the result in the user's home directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoogleToken

func GoogleToken(file, clientID, clientSecret, scope string) (*oauth.Transport, error)

GoogleToken is like Token but assumes the Google AuthURL and TokenURL, so that only the client ID and secret and desired scope must be specified.

func Token

func Token(file string, cfg *oauth.Config) (*oauth.Transport, error)

Token obtains an OAuth token, keeping a cached copy in file. If the file name is not an absolute path, it is interpreted relative to the user's home directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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