jdevesa/gists — pull request #2 by nacx (2012-09-12 09:09:40+00:00)
Title: Use token based authentication. Fixes #1

Use the token based authentication to avoid writing the user credentials in clear text in the configuration file. This way the user has full control of the permissions the CLI has, and can revoke its access if necessary.

The only thing that changes, is that with this approach, the first step to perform before using gists, is to authorize the app, and no inline "user and password" arguments are considered (for the moment); it just uses the api token. A future refactor could accept both authentications, inline credentials or the authorized API key.