authorize

command
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 9 Imported by: 0

README

authorize

The authorize command manually authorizes an application.

This functionality is not strictly required as the oauth.authorizer object will automagically invoke the authorization protocol as necessary. This is a good way to verify the authorization secret for an application.

Usage

authorize <applicationName> <accessScope>*

The applicationName must be the name used when configuring the keys using the Google developer console (see documentation for the oauth2 package).

An accessScope represents a permission that a user must agree to during the authorization process. Normally access scopes are represented as URLs. When invoking authorize just use the final path element. For example, represent access scope https://www.googleapis.com/auth/drive as drive.

  • If no access scopes are provided the single drive scope is used.
  • If drive is available authorize will attempt to list the first five items in the top-level directory as a kind of "ping".

Documentation

Overview

The authorize command acquires an initial access token for Google API usage. See the README.md file for more information.

Jump to

Keyboard shortcuts

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