A Rack middleware and Railtie(for Rails3) for API key authentication.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
simple_api_auth.gemspec

README.md

Simple API Key Authentication

A Rack middleware and Railtie(for Rails3) for API key authentication. It will authenticate all requests to /api/*

Usage

Gemfile

gem "simple_api_auth"

config/api_key.yml

api_key: you_api_key

Generate a random API key

rake generate

Run spec

bundle exec rspec spec

License

Copyright © 2011 Wen-Tien Chang Licensed under the MIT: http://www.opensource.org/licenses/mit-license.php