quantipay / authlogic_haapi

Extension of Authlogic library to add support for HTTP Auth with API Key

This URL has Read+Write access

name age message
file .gitignore Sat Jul 04 12:22:15 -0700 2009 Initial commit [Joe Scharf]
file CHANGELOG.rdoc Sat Jul 04 12:22:15 -0700 2009 Initial commit [Joe Scharf]
file MIT-LICENSE Sat Jul 04 12:22:15 -0700 2009 Initial commit [Joe Scharf]
file Manifest.txt Sat Jul 04 12:35:47 -0700 2009 Removed openid test files [quantipay]
file README.rdoc Sat Jul 04 13:06:08 -0700 2009 Updates to the documentation [quantipay]
file Rakefile Sat Jul 04 12:22:15 -0700 2009 Initial commit [Joe Scharf]
file VERSION.yml Sat Jul 04 13:05:47 -0700 2009 Version bump to 1.0.3 [quantipay]
file authlogic_haapi.gemspec Sat Jul 04 13:06:19 -0700 2009 Regenerated gemspec for version 1.0.3 [quantipay]
file init.rb Sat Jul 04 12:22:15 -0700 2009 Initial commit [Joe Scharf]
directory lib/ Sat Jul 04 12:22:15 -0700 2009 Initial commit [Joe Scharf]
directory rails/ Sat Jul 04 12:22:15 -0700 2009 Initial commit [Joe Scharf]
directory test/ Sat Jul 04 12:38:24 -0700 2009 Removed session tests - were for openid [quantipay]
README.rdoc

Authlogic Haapi (Http Auth API)

Authlogic Haapi Adds support for HTTP Authentication with an API key instead of username password. You can use it with Active Resource like so:

  require 'rubygems'
  require 'activeresource'

  API_KEY= 'YourApiKeyHere'
  URL = 'example.com'

  class Api < ActiveResource::Base
    self.site = URL
    self.user = API_KEY
  end

  class User < Api
  end

  users = User.find(:all)

Credits go to Matthew and Saro at matthewtodd.org/2009/02/19/using-authlogic-and-active_resource.html for inspiration and guidance.

Helpful links

Install and use

1. Install the Authlogic Haapi gem

  $ sudo gem install quantipay-authlogic_haapi

Now add the gem dependency in your config:

  config.gem "quantipay-authlogic_haapi", :lib => "authlogic_haapi"

Or for older version of rails, install it as a plugin:

  $ script/plugin install git://github.com/quantipay/authlogic_haapi.git

2. Configuration options:

allow_http_basic_auth_with_api_key, default = true Indicates whether you wish to allow logging in by HTTP Auth using the API Key.

Copyright © 2009 Joe Scharf of [QuantiPay](quantipay.com), released under the MIT license