quantipay-authlogic_haapi 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,24 @@
1
1
  = Authlogic Haapi (Http Auth API)
2
2
 
3
- Authlogic OpenID is an extension of the Authlogic library to add OpenID support. Authlogic v2.0 introduced an enhanced API that makes "plugging in" alternate authentication methods as easy as installing a gem.
3
+ Authlogic Haapi Adds support for HTTP Authentication with an API key instead of username password. You can use it with Active Resource
4
+ like so:
5
+
6
+ require 'rubygems'
7
+ require 'activeresource'
8
+
9
+ API_KEY= 'YourApiKeyHere'
10
+ URL = 'example.com'
11
+
12
+ class Api < ActiveResource::Base
13
+ self.site = URL
14
+ self.user = API_KEY
15
+ end
16
+
17
+ class User < Api
18
+ end
19
+
20
+ users = User.find(:all)
21
+
4
22
 
5
23
  Credits go to Matthew and Saro at http://matthewtodd.org/2009/02/19/using-authlogic-and-active_resource.html for inspiration and guidance.
6
24
 
@@ -12,11 +30,11 @@ Credits go to Matthew and Saro at http://matthewtodd.org/2009/02/19/using-authlo
12
30
 
13
31
  === 1. Install the Authlogic Haapi gem
14
32
 
15
- $ sudo gem install authlogic_haapi
33
+ $ sudo gem install quantipay-authlogic_haapi
16
34
 
17
35
  Now add the gem dependency in your config:
18
36
 
19
- config.gem "authlogic_haapi"
37
+ config.gem "quantipay-authlogic_haapi", :lib => "authlogic_haapi"
20
38
 
21
39
  Or for older version of rails, install it as a plugin:
22
40
 
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 1
3
3
  :minor: 0
4
- :patch: 2
4
+ :patch: 3
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{authlogic_haapi}
5
- s.version = "1.0.2"
5
+ s.version = "1.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Joe Scharf"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quantipay-authlogic_haapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Scharf