easy-rack-open-id 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Gemfile.lock +0 -8
- data/README.rdoc +6 -8
- data/config.ru +0 -2
- data/lib/easy-rack-open-id/version.rb +1 -1
- data/lib/{easy-rack-openid.rb → easy-rack-open-id.rb} +3 -0
- metadata +7 -9
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -8,8 +8,6 @@ GEM
|
|
8
8
|
remote: http://rubygems.org/
|
9
9
|
specs:
|
10
10
|
bson (1.3.1)
|
11
|
-
columnize (0.3.2)
|
12
|
-
linecache (0.43)
|
13
11
|
mongo (1.3.1)
|
14
12
|
bson (>= 1.3.1)
|
15
13
|
openid_mongodb_store (0.3.0)
|
@@ -19,11 +17,6 @@ GEM
|
|
19
17
|
rack-openid (1.3.1)
|
20
18
|
rack (>= 1.1.0)
|
21
19
|
ruby-openid (>= 2.1.8)
|
22
|
-
ruby-debug (0.10.4)
|
23
|
-
columnize (>= 0.1)
|
24
|
-
ruby-debug-base (~> 0.10.4.0)
|
25
|
-
ruby-debug-base (0.10.4)
|
26
|
-
linecache (>= 0.3)
|
27
20
|
ruby-openid (2.1.8)
|
28
21
|
shotgun (0.9)
|
29
22
|
rack (>= 1.0)
|
@@ -34,5 +27,4 @@ PLATFORMS
|
|
34
27
|
DEPENDENCIES
|
35
28
|
easy-rack-open-id!
|
36
29
|
openid_mongodb_store
|
37
|
-
ruby-debug
|
38
30
|
shotgun
|
data/README.rdoc
CHANGED
@@ -1,20 +1,18 @@
|
|
1
|
-
=
|
1
|
+
= EasyRackOpenId. Simplifies OpenID login for Rack apps.
|
2
2
|
|
3
3
|
== Installation
|
4
|
-
gem install easy-rack-open-id
|
5
|
-
(depends on rack-openid which depends on ruby-openid)
|
6
4
|
|
7
|
-
|
8
|
-
require 'rack
|
5
|
+
gem install easy-rack-open-id
|
6
|
+
require 'easy-rack-open-id'
|
9
7
|
use Rack::Session::Cookie
|
10
8
|
use Rack::OpenID
|
11
|
-
use
|
9
|
+
use EasyRackOpenId::Server, :allowed_identifiers => ['http://example.com/']
|
12
10
|
run lambda {|env| [ 200, { 'Content-Type' => 'text/plain' }, [ 'Authenticated!' ] ] }
|
13
11
|
|
14
12
|
There's an example in config.ru
|
15
13
|
|
16
14
|
|
17
|
-
Basically, slap
|
15
|
+
Basically, slap EasyRackOpenId in front of the App you want to protect. Rack::OpenID needs to be above it. Data from the login (identifier, registration info) will be made available in session[:verified_identity]
|
18
16
|
|
19
17
|
session['verified_identity']['identifier'] # http://samsm.com/
|
20
18
|
session['verified_identity']['nickname'] # samsm
|
@@ -30,7 +28,7 @@ OpenID needs some storage to remember cryptographic nuts and bolts. Rack:OpenID
|
|
30
28
|
|
31
29
|
== Too Many Options!
|
32
30
|
|
33
|
-
With no arguments,
|
31
|
+
With no arguments, EasyRackOpenId will only allow users with a verified OpenID to proceed. It won't care what that identity is.
|
34
32
|
|
35
33
|
:allowed_identifiers - when used, only identities in the provided array will be allowed access.
|
36
34
|
|
data/config.ru
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy-rack-open-id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sam Schenkman-Moore
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-06-02 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rack-openid
|
@@ -51,10 +50,10 @@ files:
|
|
51
50
|
- Rakefile
|
52
51
|
- config.ru
|
53
52
|
- easy-rack-open-id.gemspec
|
53
|
+
- lib/easy-rack-open-id.rb
|
54
54
|
- lib/easy-rack-open-id/processing.rb
|
55
55
|
- lib/easy-rack-open-id/server.rb
|
56
56
|
- lib/easy-rack-open-id/version.rb
|
57
|
-
- lib/easy-rack-openid.rb
|
58
57
|
- lib/generic_openid_form.html.erb
|
59
58
|
- lib/nice_openid_form.html.erb
|
60
59
|
- lib/nicer_openid_form.html.erb
|
@@ -84,7 +83,6 @@ files:
|
|
84
83
|
- public/easy-rack-open-id-assets/openid-selector/images/yahoo.gif
|
85
84
|
- public/easy-rack-open-id-assets/openid-selector/js/jquery-1.2.6.min.js
|
86
85
|
- public/easy-rack-open-id-assets/openid-selector/js/openid-jquery.js
|
87
|
-
has_rdoc: true
|
88
86
|
homepage: http://github.com/samsm/easy-rack-open-id
|
89
87
|
licenses: []
|
90
88
|
|
@@ -114,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
112
|
requirements: []
|
115
113
|
|
116
114
|
rubyforge_project: easy-rack-open-id
|
117
|
-
rubygems_version: 1.
|
115
|
+
rubygems_version: 1.8.4
|
118
116
|
signing_key:
|
119
117
|
specification_version: 3
|
120
118
|
summary: Super easy OpenID protection for Rack.
|