0.0
No commit activity in last 3 years
No release in over 3 years
A command line OAuth authorization tool.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3.0
~> 0.9.12
~> 2.4.0
~> 0.1.0

Runtime

~> 4.0.3
~> 1.0.2
~> 1.0.0
 Project Readme

Authoritarian

Overview

Command line utility for authorizing Twitter users to an application. This can be useful if you own a bunch of accounts (such as feed accounts) that need to be authorized to a Twitter application you run. For example, the Scuttlebutt project used this to authorize all its feeds.

Usage

To use authoritarian, you need to have you Twitter application's key and secret. From there, simply install and run the CLI:

$ go get github.com/benbjohnson/authoritarian
$ authoritarian -key $TWITTER_APP_KEY -secret $TWITTER_APP_SECRET
Listening on http://localhost:10000

Now you simply need to open your web browser to http://localhost:10000 and log in with the Twitter account you want to authorize. After you authorize the account, you'll be presented with a user auth key and secret. Copy these values to wherever you need them since they are not saved anywhere else.

NOTE: PLEASE DO NOT PUT YOUR KEY & SECRET IN YOUR APPLICATION AND CHECK THEM IN!

Acknowledgements

This project is largely based on @kurrik's examples in twittergo. It's just wrapped up into a little CLI so it's easy to use.