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.
- data/README.rdoc +21 -3
- data/VERSION.yml +1 -1
- data/authlogic_haapi.gemspec +1 -1
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
= Authlogic Haapi (Http Auth API)
|
2
2
|
|
3
|
-
Authlogic
|
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
|
|
data/VERSION.yml
CHANGED
data/authlogic_haapi.gemspec
CHANGED