rack-oauth2-server 2.3.0 → 2.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +11 -0
- data/README.rdoc +2 -0
- data/VERSION +1 -1
- data/lib/rack/oauth2/models/access_grant.rb +2 -2
- data/lib/rack/oauth2/models/access_token.rb +6 -12
- data/lib/rack/oauth2/models/auth_request.rb +2 -2
- data/lib/rack/oauth2/server.rb +15 -10
- data/test/oauth/access_token_test.rb +29 -0
- data/test/rails2/config/environment.rb +3 -0
- data/test/rails2/log/test.log +6789 -0
- data/test/rails3/log/test.log +17824 -0
- data/test/setup.rb +1 -0
- data/test/sinatra/my_app.rb +2 -0
- metadata +56 -58
data/test/setup.rb
CHANGED
data/test/sinatra/my_app.rb
CHANGED
@@ -3,6 +3,7 @@ require "rack/oauth2/sinatra"
|
|
3
3
|
class MyApp < Sinatra::Base
|
4
4
|
use Rack::Logger
|
5
5
|
set :sessions, true
|
6
|
+
set :show_exceptions, false
|
6
7
|
|
7
8
|
register Rack::OAuth2::Sinatra
|
8
9
|
oauth.authenticator = lambda do |username, password|
|
@@ -12,6 +13,7 @@ class MyApp < Sinatra::Base
|
|
12
13
|
oauth.database = DATABASE
|
13
14
|
|
14
15
|
|
16
|
+
|
15
17
|
# 3. Obtaining End-User Authorization
|
16
18
|
|
17
19
|
before "/oauth/*" do
|
metadata
CHANGED
@@ -1,71 +1,71 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-oauth2-server
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.4.0
|
4
5
|
prerelease:
|
5
|
-
version: 2.3.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Assaf Arkin
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2011-07-28 00:00:00.000000000 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
16
|
name: rack
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
17
|
+
requirement: &2156283680 !ruby/object:Gem::Requirement
|
19
18
|
none: false
|
20
|
-
requirements:
|
19
|
+
requirements:
|
21
20
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.1'
|
24
23
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: mongo
|
28
24
|
prerelease: false
|
29
|
-
|
25
|
+
version_requirements: *2156283680
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: mongo
|
28
|
+
requirement: &2156283220 !ruby/object:Gem::Requirement
|
30
29
|
none: false
|
31
|
-
requirements:
|
30
|
+
requirements:
|
32
31
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version:
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1'
|
35
34
|
type: :runtime
|
36
|
-
version_requirements: *id002
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: bson_ext
|
39
35
|
prerelease: false
|
40
|
-
|
36
|
+
version_requirements: *2156283220
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: bson_ext
|
39
|
+
requirement: &2156282840 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
41
|
+
requirements:
|
42
|
+
- - ! '>='
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: '0'
|
46
45
|
type: :runtime
|
47
|
-
version_requirements: *id003
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: sinatra
|
50
46
|
prerelease: false
|
51
|
-
|
47
|
+
version_requirements: *2156282840
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: sinatra
|
50
|
+
requirement: &2156282300 !ruby/object:Gem::Requirement
|
52
51
|
none: false
|
53
|
-
requirements:
|
52
|
+
requirements:
|
54
53
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '1.1'
|
57
56
|
type: :runtime
|
58
|
-
|
59
|
-
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *2156282300
|
59
|
+
description: Because you don't allow strangers into your app, and OAuth 2.0 is the
|
60
|
+
new awesome.
|
60
61
|
email: assaf@labnotes.org
|
61
|
-
executables:
|
62
|
+
executables:
|
62
63
|
- oauth2-server
|
63
64
|
extensions: []
|
64
|
-
|
65
|
-
extra_rdoc_files:
|
65
|
+
extra_rdoc_files:
|
66
66
|
- README.rdoc
|
67
67
|
- CHANGELOG
|
68
|
-
files:
|
68
|
+
files:
|
69
69
|
- bin/oauth2-server
|
70
70
|
- lib/rack/oauth2/admin/css/screen.css
|
71
71
|
- lib/rack/oauth2/admin/images/loading.gif
|
@@ -132,38 +132,36 @@ files:
|
|
132
132
|
- Rakefile
|
133
133
|
- Gemfile
|
134
134
|
- rack-oauth2-server.gemspec
|
135
|
+
has_rdoc: true
|
135
136
|
homepage: http://github.com/flowtown/rack-oauth2-server
|
136
|
-
licenses:
|
137
|
+
licenses:
|
137
138
|
- MIT
|
138
139
|
post_install_message: To get started, run the command oauth2-server
|
139
|
-
rdoc_options:
|
140
|
+
rdoc_options:
|
140
141
|
- --title
|
141
|
-
- rack-oauth2-server 2.
|
142
|
+
- rack-oauth2-server 2.4.0
|
142
143
|
- --main
|
143
144
|
- README.rdoc
|
144
145
|
- --webcvs
|
145
146
|
- http://github.com/flowtown/rack-oauth2-server
|
146
|
-
require_paths:
|
147
|
+
require_paths:
|
147
148
|
- lib
|
148
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
149
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
149
150
|
none: false
|
150
|
-
requirements:
|
151
|
-
- -
|
152
|
-
- !ruby/object:Gem::Version
|
151
|
+
requirements:
|
152
|
+
- - ! '>='
|
153
|
+
- !ruby/object:Gem::Version
|
153
154
|
version: 1.8.7
|
154
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
156
|
none: false
|
156
|
-
requirements:
|
157
|
-
- -
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version:
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
160
161
|
requirements: []
|
161
|
-
|
162
162
|
rubyforge_project:
|
163
|
-
rubygems_version: 1.
|
163
|
+
rubygems_version: 1.6.2
|
164
164
|
signing_key:
|
165
165
|
specification_version: 3
|
166
166
|
summary: OAuth 2.0 Authorization Server as a Rack module
|
167
167
|
test_files: []
|
168
|
-
|
169
|
-
has_rdoc:
|