Add API authentication #57

bjones opened this Issue Jan 12, 2012 · 3 comments

2 participants


Configure Devise token_authenticatable and a few other bits to enable API behavior.

@bjones bjones was assigned Jan 12, 2012

Brian, I started looking into this last night. As we discuss. I plan on surfacing the ability for users to see the api_token.

@bithckr bithckr added a commit that referenced this issue Feb 5, 2012
@bithckr Issue #57. Added the ability for users to edit their account information
(email, password), as well as generate and delete a API token.

Brian, take a look at the latest changes. I am going to add a couple tests, but it seems everything is working as expected.


This is working, the settings page has the wrong wording because we call it 'api_key' and not 'auth_token'. Finish the tests, fix the wording and close this.

@bjones bjones pushed a commit that referenced this issue May 10, 2012
Brian Jones Issue #57
* app/assets/javascripts/application.js: adding some ojs for handling
the need to copy some small piece of data easily that cannot be
highlighted in the UI already
* app/views/devise/registrations/edit.html.erb: updating the account
settings page so it doesn't provide an incorrect url, adds a simple way
of copying the api key so you don't have to type it out
* config/routes.rb: make token_authentications a singleton for
* spec/controllers/token_authentications_controller_spec.rb: new file
* spec/helpers/application_helper_spec.rb: new file
@bjones bjones closed this May 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment