Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add API authentication #57

Closed
bjones opened this Issue · 3 comments

2 participants

@bjones
Collaborator

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

@bjones bjones was assigned
@bithckr
Owner

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 referenced this issue from a commit
@bithckr Issue #57. Added the ability for users to edit their account information
(email, password), as well as generate and delete a API token.
4d1b10c
@bithckr
Owner

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

@bjones
Collaborator

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 referenced this issue from a commit
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
d658650
@bjones bjones closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.