Sha256: 8f180f6a1d19ac13bf9190f58457d06b098af0b67fadb28d161d56d3190f4924
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
# EasyAuth An easy(ish) way to use API tokens in your services ## Installation Add this line to your application's Gemfile: gem 'ez_auth', :require => "easy_auth" And then execute: $ bundle Or install it yourself as: $ gem install ez_auth ## Usage Set your API token for your service: $ export API_TOKEN=your_api_token Include in your controller ```ruby class ApplicationController < ActionController::Base include EasyAuth before_filter :easy_authenticate! end ``` Add your API token to your request header on your client: $ curl --header "HTTP_X_API_TOKEN: your_api_token" api.yourservice.com ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ez_auth-0.0.3 | README.md |
ez_auth-0.0.2 | README.md |