Skip to content
This repository has been archived by the owner on Feb 5, 2018. It is now read-only.

Support token creation (and 2FA) from the command line #28

Open
afeld opened this issue Apr 21, 2014 · 1 comment
Open

Support token creation (and 2FA) from the command line #28

afeld opened this issue Apr 21, 2014 · 1 comment

Comments

@afeld
Copy link
Contributor

afeld commented Apr 21, 2014

This should be possible, but will take a bit of tinkering with to figure out. Might also be nice to pull out into a dedicated gem/script that can be shared between non-browser tools.

Would love input from people that are smarter than me :bowtie:

/cc @mislav

@afeld afeld added the feature label Apr 21, 2014
@mislav
Copy link

mislav commented Apr 21, 2014

The code you linked in hub is a good reference implementation. The process of obtaining the token is straightforward with the exception the dummy POST for 2FA that has a purpose of sending off an SMS, which a GET /authorizations won't do (there was some discussion whether this is an API bug).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants