ruby-openid 2.1.8 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ruby-openid might be problematic. Click here for more details.
- data/CHANGELOG.md +13 -0
- data/INSTALL.md +47 -0
- data/README.md +82 -0
- data/{UPGRADE → UPGRADE.md} +54 -55
- data/examples/active_record_openid_store/README +4 -2
- data/examples/active_record_openid_store/XXX_add_open_id_store_to_db.rb +1 -1
- data/examples/active_record_openid_store/lib/openid_ar_store.rb +1 -1
- data/examples/rails_openid/app/controllers/server_controller.rb +0 -6
- data/lib/openid.rb +2 -2
- data/lib/openid/consumer/responses.rb +2 -0
- data/lib/openid/dh.rb +1 -1
- data/lib/openid/extensions/ax.rb +44 -22
- data/lib/openid/extensions/ui.rb +53 -0
- data/lib/openid/message.rb +1 -1
- data/lib/openid/store/filesystem.rb +8 -9
- data/lib/openid/store/memcache.rb +10 -2
- data/lib/openid/trustroot.rb +1 -0
- data/lib/openid/util.rb +6 -0
- data/lib/openid/version.rb +3 -0
- data/test/data/trustroot.txt +2 -2
- data/test/test_accept.rb +1 -1
- data/test/test_associationmanager.rb +1 -1
- data/test/test_ax.rb +89 -19
- data/test/test_checkid_request.rb +1 -1
- data/test/test_consumer.rb +5 -2
- data/test/test_cryptutil.rb +1 -1
- data/test/test_dh.rb +1 -1
- data/test/test_discover.rb +2 -4
- data/test/test_discovery_manager.rb +1 -3
- data/test/test_extension.rb +2 -2
- data/test/test_fetchers.rb +3 -7
- data/test/test_filters.rb +25 -31
- data/test/test_idres.rb +17 -17
- data/test/test_kvpost.rb +2 -2
- data/test/test_message.rb +1 -2
- data/test/test_oauth.rb +3 -2
- data/test/test_openid_yadis.rb +0 -1
- data/test/test_pape.rb +7 -6
- data/test/test_parsehtml.rb +2 -2
- data/test/test_server.rb +17 -22
- data/test/test_sreg.rb +8 -8
- data/test/test_stores.rb +1 -2
- data/test/test_trustroot.rb +14 -15
- data/test/test_ui.rb +93 -0
- data/test/test_urinorm.rb +2 -3
- data/test/test_util.rb +2 -3
- data/test/test_xrds.rb +13 -15
- data/test/test_xrires.rb +27 -14
- data/test/test_yadis_discovery.rb +1 -3
- metadata +260 -189
- data/CHANGELOG +0 -215
- data/INSTALL +0 -47
- data/README +0 -81
- data/admin/runtests.rb +0 -45
data/CHANGELOG
DELETED
@@ -1,215 +0,0 @@
|
|
1
|
-
Mon Jan 23 12:48:00 PST 2006 brian@janrain.com
|
2
|
-
* fixed bug in expiresIn. added expired? method
|
3
|
-
|
4
|
-
M ./lib/openid/filestore.rb -1 +1
|
5
|
-
M ./lib/openid/stores.rb +4
|
6
|
-
|
7
|
-
Mon Jan 23 12:46:37 PST 2006 brian@janrain.com
|
8
|
-
* removed deps section from INSTALL file. deps are now included in lib because they are so small and to lower to bar of installing the library.
|
9
|
-
|
10
|
-
M ./INSTALL -9
|
11
|
-
|
12
|
-
Tue Jan 17 14:45:57 PST 2006 brian@janrain.com
|
13
|
-
* added better handling of non-URL input
|
14
|
-
|
15
|
-
M ./lib/openid/consumer.rb -1 +5
|
16
|
-
|
17
|
-
Sat Jan 14 19:39:57 PST 2006 brian@janrain.com
|
18
|
-
* added html and hmac deps into lib since they are so small
|
19
|
-
|
20
|
-
A ./lib/hmac-md5.rb
|
21
|
-
A ./lib/hmac-rmd160.rb
|
22
|
-
A ./lib/hmac-sha1.rb
|
23
|
-
A ./lib/hmac-sha2.rb
|
24
|
-
A ./lib/hmac.rb
|
25
|
-
A ./lib/html/
|
26
|
-
A ./lib/html/htmltokenizer.rb
|
27
|
-
|
28
|
-
Mon Jan 16 15:04:05 PST 2006 Josh Hoyt <josh@janrain.com>
|
29
|
-
* Add script that will prepare the repository for release
|
30
|
-
|
31
|
-
A ./admin/fixperms
|
32
|
-
A ./admin/prepare-release
|
33
|
-
|
34
|
-
Mon Jan 16 14:35:27 PST 2006 Josh Hoyt <josh@janrain.com>
|
35
|
-
* Add custom boring file
|
36
|
-
|
37
|
-
A ./admin/darcs-ignore
|
38
|
-
|
39
|
-
Mon Jan 16 14:07:13 PST 2006 Josh Hoyt <josh@janrain.com>
|
40
|
-
* Put the build-docs script into the admin directory
|
41
|
-
|
42
|
-
./build-docs -> ./admin/build-docs
|
43
|
-
A ./admin/
|
44
|
-
|
45
|
-
Mon Jan 16 14:05:47 PST 2006 Josh Hoyt <josh@janrain.com>
|
46
|
-
* Add script to build documentation
|
47
|
-
|
48
|
-
A ./build-docs
|
49
|
-
|
50
|
-
Wed Jan 4 16:06:41 PST 2006 brian@janrain.com
|
51
|
-
tagged ruby-openid-0.9.2
|
52
|
-
|
53
|
-
|
54
|
-
Wed Jan 4 16:02:32 PST 2006 brian@janrain.com
|
55
|
-
* added openid_login_generator rails generator to examples
|
56
|
-
|
57
|
-
A ./examples/openid_login_generator/
|
58
|
-
A ./examples/openid_login_generator/USAGE
|
59
|
-
A ./examples/openid_login_generator/openid_login_generator.rb
|
60
|
-
A ./examples/openid_login_generator/templates/
|
61
|
-
A ./examples/openid_login_generator/templates/README
|
62
|
-
A ./examples/openid_login_generator/templates/controller.rb
|
63
|
-
A ./examples/openid_login_generator/templates/helper.rb
|
64
|
-
A ./examples/openid_login_generator/templates/login_system.rb
|
65
|
-
A ./examples/openid_login_generator/templates/user.rb
|
66
|
-
A ./examples/openid_login_generator/templates/view_login.rhtml
|
67
|
-
A ./examples/openid_login_generator/templates/view_logout.rhtml
|
68
|
-
A ./examples/openid_login_generator/templates/view_signup.rhtml
|
69
|
-
A ./examples/openid_login_generator/templates/view_welcome.rhtml
|
70
|
-
|
71
|
-
Wed Jan 4 16:01:12 PST 2006 brian@janrain.com
|
72
|
-
* updated examples README to include openid_login_generator
|
73
|
-
|
74
|
-
M ./examples/README +11
|
75
|
-
|
76
|
-
Wed Jan 4 14:58:24 PST 2006 brian@janrain.com
|
77
|
-
* added link to ruby library from consumer.rb example
|
78
|
-
|
79
|
-
M ./examples/consumer.rb -1 +1
|
80
|
-
|
81
|
-
Wed Jan 4 10:56:45 PST 2006 brian@janrain.com
|
82
|
-
* ensure Content-type header is present for POSTs
|
83
|
-
|
84
|
-
M ./lib/openid/fetchers.rb -1 +2
|
85
|
-
|
86
|
-
Fri Dec 30 17:05:25 PST 2005 brian@janrain.com
|
87
|
-
tagged ruby-openid-0.9.1
|
88
|
-
|
89
|
-
|
90
|
-
Fri Dec 30 17:03:54 PST 2005 brian@janrain.com
|
91
|
-
* added Ruby on Rails example consumer
|
92
|
-
|
93
|
-
M ./examples/README -1 +14
|
94
|
-
A ./examples/openid_rails.tar.gz
|
95
|
-
|
96
|
-
Thu Dec 29 16:00:20 PST 2005 brian@janrain.com
|
97
|
-
tagged ruby-openid-0.9.0
|
98
|
-
|
99
|
-
|
100
|
-
Thu Dec 29 15:43:07 PST 2005 brian@janrain.com
|
101
|
-
* removed docs directory. generated rdoc html will be added manually to tarballs, and not be kept in repository
|
102
|
-
|
103
|
-
R ./docs/
|
104
|
-
R ./docs/README
|
105
|
-
|
106
|
-
Thu Dec 29 15:21:21 PST 2005 brian@janrain.com
|
107
|
-
* added more docs for stores
|
108
|
-
|
109
|
-
M ./TODO -2 +4
|
110
|
-
M ./lib/openid/filestore.rb -16 +3
|
111
|
-
M ./lib/openid/stores.rb -9 +1
|
112
|
-
|
113
|
-
Thu Dec 29 14:58:52 PST 2005 brian@janrain.com
|
114
|
-
* Huge documentation patch
|
115
|
-
|
116
|
-
M ./INSTALL -12 +22
|
117
|
-
M ./README -1 +1
|
118
|
-
M ./lib/openid/consumer.rb -24 +370
|
119
|
-
M ./lib/openid/fetchers.rb -2 +1
|
120
|
-
M ./lib/openid/filestore.rb -6 +4
|
121
|
-
M ./lib/openid/stores.rb -2 +1
|
122
|
-
|
123
|
-
Thu Dec 29 10:59:54 PST 2005 brian@janrain.com
|
124
|
-
* added more info and rdoc formatting to README
|
125
|
-
|
126
|
-
M ./README -10 +26
|
127
|
-
|
128
|
-
Thu Dec 29 09:45:51 PST 2005 brian@janrain.com
|
129
|
-
* fixed bad comment
|
130
|
-
|
131
|
-
M ./examples/consumer.rb -1 +1
|
132
|
-
|
133
|
-
Wed Dec 28 17:59:48 PST 2005 brian@janrain.com
|
134
|
-
* added platform agnositc temp dir discovery
|
135
|
-
|
136
|
-
M ./examples/consumer.rb -1 +5
|
137
|
-
|
138
|
-
Wed Dec 28 17:13:21 PST 2005 brian@janrain.com
|
139
|
-
* moved getOpenIDParamerters to util
|
140
|
-
|
141
|
-
M ./lib/openid/consumer.rb -10 +2
|
142
|
-
M ./lib/openid/util.rb +8
|
143
|
-
|
144
|
-
Wed Dec 28 15:47:51 PST 2005 brian@janrain.com
|
145
|
-
* code cleanup
|
146
|
-
|
147
|
-
M ./lib/openid/consumer.rb -5
|
148
|
-
|
149
|
-
Wed Dec 28 15:29:31 PST 2005 brian@janrain.com
|
150
|
-
* added linkparse to test suite script
|
151
|
-
|
152
|
-
M ./test/runtests -1 +1
|
153
|
-
|
154
|
-
Wed Dec 28 15:29:07 PST 2005 brian@janrain.com
|
155
|
-
* added link parsing tests, lots of em
|
156
|
-
|
157
|
-
A ./test/linkparse.rb
|
158
|
-
|
159
|
-
Wed Dec 28 15:28:07 PST 2005 brian@janrain.com
|
160
|
-
* link parsing more robust: handle non-html data, and make sure link tag is in head
|
161
|
-
|
162
|
-
M ./lib/openid/parse.rb -5 +13
|
163
|
-
|
164
|
-
Tue Dec 27 16:11:09 PST 2005 brian@janrain.com
|
165
|
-
* added more tests for openid/util
|
166
|
-
|
167
|
-
M ./test/dh.rb -2 +1
|
168
|
-
M ./test/runtests +1
|
169
|
-
A ./test/util.rb
|
170
|
-
|
171
|
-
Tue Dec 27 16:10:28 PST 2005 brian@janrain.com
|
172
|
-
* change util methods to use all use /dev/urandom if available
|
173
|
-
|
174
|
-
M ./lib/openid/util.rb -15 +35
|
175
|
-
|
176
|
-
Tue Dec 27 16:09:53 PST 2005 brian@janrain.com
|
177
|
-
* changed tmp pathname to something more useful
|
178
|
-
|
179
|
-
M ./examples/consumer.rb -1 +1
|
180
|
-
|
181
|
-
Fri Dec 16 09:04:59 PST 2005 Josh Hoyt <josh@janrain.com>
|
182
|
-
* Removed (now obsolete) interface.rb
|
183
|
-
|
184
|
-
This has been subsumed by consumer.rb
|
185
|
-
|
186
|
-
R ./lib/openid/interface.rb
|
187
|
-
|
188
|
-
Thu Dec 15 18:25:04 PST 2005 brian@janrain.com
|
189
|
-
* initial checkin
|
190
|
-
|
191
|
-
A ./COPYING
|
192
|
-
A ./INSTALL
|
193
|
-
A ./README
|
194
|
-
A ./TODO
|
195
|
-
A ./docs/
|
196
|
-
A ./docs/README
|
197
|
-
A ./examples/
|
198
|
-
A ./examples/README
|
199
|
-
A ./examples/consumer.rb
|
200
|
-
A ./lib/
|
201
|
-
A ./lib/openid/
|
202
|
-
A ./lib/openid/consumer.rb
|
203
|
-
A ./lib/openid/dh.rb
|
204
|
-
A ./lib/openid/fetchers.rb
|
205
|
-
A ./lib/openid/filestore.rb
|
206
|
-
A ./lib/openid/interface.rb
|
207
|
-
A ./lib/openid/parse.rb
|
208
|
-
A ./lib/openid/stores.rb
|
209
|
-
A ./lib/openid/util.rb
|
210
|
-
A ./setup.rb
|
211
|
-
A ./test/
|
212
|
-
A ./test/assoc.rb
|
213
|
-
A ./test/dh.rb
|
214
|
-
A ./test/runtests
|
215
|
-
A ./test/teststore.rb
|
data/INSTALL
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
= Ruby OpenID Library Installation
|
2
|
-
|
3
|
-
== Rubygems Installation
|
4
|
-
|
5
|
-
Rubygems is a tool for installing ruby libraries and their
|
6
|
-
dependancies. If you have rubygems installed, simply:
|
7
|
-
|
8
|
-
gem install ruby-openid
|
9
|
-
|
10
|
-
== Manual Installation
|
11
|
-
|
12
|
-
Unpack the archive and run setup.rb to install:
|
13
|
-
|
14
|
-
ruby setup.rb
|
15
|
-
|
16
|
-
setup.rb installs the library into your system ruby. If don't want to
|
17
|
-
add openid to you system ruby, you may instead add the *lib* directory of
|
18
|
-
the extracted tarball to your RUBYLIB environment variable:
|
19
|
-
|
20
|
-
$ export RUBYLIB=${RUBYLIB}:/path/to/ruby-openid/lib
|
21
|
-
|
22
|
-
|
23
|
-
== Testing the Installation
|
24
|
-
|
25
|
-
Make sure everything installed ok:
|
26
|
-
$> irb
|
27
|
-
irb$> require "openid"
|
28
|
-
=> true
|
29
|
-
|
30
|
-
Or, if you installed via rubygems:
|
31
|
-
|
32
|
-
$> irb
|
33
|
-
irb$> require "rubygems"
|
34
|
-
=> true
|
35
|
-
irb$> require_gem "ruby-openid"
|
36
|
-
=> true
|
37
|
-
|
38
|
-
== Run the test suite
|
39
|
-
|
40
|
-
Go into the test directory and execute the *runtests.rb* script.
|
41
|
-
|
42
|
-
== Next steps
|
43
|
-
|
44
|
-
* Run consumer.rb in the examples directory.
|
45
|
-
* Get started writing your own consumer using OpenID::Consumer
|
46
|
-
* Write your own server with OpenID::Server
|
47
|
-
* Use the OpenIDLoginGenerator! Read example/README for more info.
|
data/README
DELETED
@@ -1,81 +0,0 @@
|
|
1
|
-
=Ruby OpenID
|
2
|
-
|
3
|
-
A Ruby library for verifying and serving OpenID identities.
|
4
|
-
|
5
|
-
==Features
|
6
|
-
* Easy to use API for verifying OpenID identites - OpenID::Consumer
|
7
|
-
* Support for serving OpenID identites - OpenID::Server
|
8
|
-
* Does not depend on underlying web framework
|
9
|
-
* Supports multiple storage mechanisms (Filesystem, ActiveRecord, Memory)
|
10
|
-
* Example code to help you get started, including:
|
11
|
-
* Ruby on Rails based consumer and server
|
12
|
-
* OpenIDLoginGenerator for quickly getting creating a rails app that uses
|
13
|
-
OpenID for authentication
|
14
|
-
* ActiveRecordOpenIDStore plugin
|
15
|
-
* Comprehensive test suite
|
16
|
-
* Supports both OpenID 1 and OpenID 2 transparently
|
17
|
-
|
18
|
-
==Installing
|
19
|
-
Before running the examples or writing your own code you'll need to install
|
20
|
-
the library. See the INSTALL file or use rubygems:
|
21
|
-
|
22
|
-
gem install ruby-openid
|
23
|
-
|
24
|
-
Check the installation:
|
25
|
-
|
26
|
-
$ irb
|
27
|
-
irb> require 'rubygems'
|
28
|
-
irb> require_gem 'ruby-openid'
|
29
|
-
=> true
|
30
|
-
|
31
|
-
The library is known to work with Ruby 1.8.4 on Unix, Max OSX and
|
32
|
-
Win32. Examples have been tested with Rails 1.1 and 1.2, and 2.0.
|
33
|
-
|
34
|
-
==Getting Started
|
35
|
-
The best way to start is to look at the rails_openid example.
|
36
|
-
You can run it with:
|
37
|
-
cd examples/rails_openid
|
38
|
-
script/server
|
39
|
-
|
40
|
-
If you are writing an OpenID Relying Party, a good place to start is:
|
41
|
-
examples/rails_openid/app/controllers/consumer_controller.rb
|
42
|
-
|
43
|
-
And if you are writing an OpenID provider:
|
44
|
-
examples/rails_openid/app/controllers/server_controller.rb
|
45
|
-
|
46
|
-
The library code is quite well documented, so don't be squeamish, and
|
47
|
-
look at the library itself if there's anything you don't understand in
|
48
|
-
the examples.
|
49
|
-
|
50
|
-
==Homepage
|
51
|
-
http://github.com/openid/ruby-openid
|
52
|
-
|
53
|
-
See also:
|
54
|
-
http://openid.net/
|
55
|
-
|
56
|
-
==Community
|
57
|
-
Discussion regarding the Ruby OpenID library and other JanRain OpenID
|
58
|
-
libraries takes place on the the OpenID mailing list on
|
59
|
-
openid.net.
|
60
|
-
|
61
|
-
http://openid.net/developers/dev-mailing-lists/
|
62
|
-
|
63
|
-
Please join this list to discuss, ask implementation questions, report
|
64
|
-
bugs, etc. Also check out the openid channel on the freenode IRC
|
65
|
-
network.
|
66
|
-
|
67
|
-
If you have a bugfix or feature you'd like to contribute, don't
|
68
|
-
hesitate to send it to us. For more detailed information on how to
|
69
|
-
contribute, see
|
70
|
-
|
71
|
-
http://openidenabled.com/contribute/
|
72
|
-
|
73
|
-
==Author
|
74
|
-
Copyright 2006-2008, JanRain, Inc.
|
75
|
-
|
76
|
-
Contact openid@janrain.com or visit the OpenID channel on pibb.com:
|
77
|
-
|
78
|
-
http://pibb.com/go/openid
|
79
|
-
|
80
|
-
==License
|
81
|
-
Apache Software License. For more information see the LICENSE file.
|
data/admin/runtests.rb
DELETED
@@ -1,45 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
|
-
|
3
|
-
require "logger"
|
4
|
-
require "stringio"
|
5
|
-
require "pathname"
|
6
|
-
|
7
|
-
require 'test/unit/collector/dir'
|
8
|
-
require 'test/unit/ui/console/testrunner'
|
9
|
-
|
10
|
-
begin
|
11
|
-
require 'rubygems'
|
12
|
-
require 'memcache'
|
13
|
-
rescue LoadError
|
14
|
-
else
|
15
|
-
if ENV['TESTING_MEMCACHE']
|
16
|
-
TESTING_MEMCACHE = MemCache.new(ENV['TESTING_MEMCACHE'])
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def main
|
21
|
-
old_verbose = $VERBOSE
|
22
|
-
$VERBOSE = true
|
23
|
-
|
24
|
-
tests_dir = Pathname.new(__FILE__).dirname.dirname.join('test')
|
25
|
-
|
26
|
-
# Collect tests from everything named test_*.rb.
|
27
|
-
c = Test::Unit::Collector::Dir.new
|
28
|
-
|
29
|
-
if c.respond_to?(:base=)
|
30
|
-
# In order to supress warnings from ruby 1.8.6 about accessing
|
31
|
-
# undefined member
|
32
|
-
c.base = tests_dir
|
33
|
-
suite = c.collect
|
34
|
-
else
|
35
|
-
# Because base is not defined in ruby < 1.8.6
|
36
|
-
suite = c.collect(tests_dir)
|
37
|
-
end
|
38
|
-
|
39
|
-
result = Test::Unit::UI::Console::TestRunner.run(suite)
|
40
|
-
result.passed?
|
41
|
-
ensure
|
42
|
-
$VERBOSE = old_verbose
|
43
|
-
end
|
44
|
-
|
45
|
-
exit(main)
|