Skip to content

Command line tool to retrieve oauth tokens for programmatic access to google services.

Notifications You must be signed in to change notification settings

mathisonian/google-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

google-auth

Command line tool to retrieve oauth tokens for programmatic access to google services.

Because only google would make something so unfriendly to users it requires a special tool to retreive API tokens

Installation

npm install -g google-auth

Usage

Obtain Google Client ID & Secret

Running the command line program

$ google-auth --id=<client_id> --secret=<client_secret> [services to auth with]

If you do not pass in the id and secret parameters, the app will look for the environmental variables GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET

Example

For example, to authenticate with google drive and google calendar:


$ export GOOGLE_CLIENT_ID=<client_id>
$ export GOOGLE_CLIENT_SECRET=<client_secret>
$ google-auth drive calendar

this will open a web browser for you to confirm your authentication.

About

Command line tool to retrieve oauth tokens for programmatic access to google services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published