rack-oauth2-server 2.0.0.beta3 → 2.0.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +25 -7
- data/README.rdoc +18 -7
- data/VERSION +1 -1
- data/bin/oauth2-server +6 -6
- data/lib/rack/oauth2/admin/css/screen.css +8 -2
- data/lib/rack/oauth2/admin/js/application.js +44 -37
- data/lib/rack/oauth2/admin/js/sammy.oauth2.js +10 -3
- data/lib/rack/oauth2/admin/views/client.tmpl +3 -2
- data/lib/rack/oauth2/admin/views/edit.tmpl +13 -9
- data/lib/rack/oauth2/models/access_grant.rb +6 -4
- data/lib/rack/oauth2/models/access_token.rb +12 -14
- data/lib/rack/oauth2/models/auth_request.rb +10 -7
- data/lib/rack/oauth2/models/client.rb +11 -7
- data/lib/rack/oauth2/rails.rb +2 -2
- data/lib/rack/oauth2/server/admin.rb +8 -6
- data/lib/rack/oauth2/server/helper.rb +2 -2
- data/lib/rack/oauth2/server/practice.rb +1 -1
- data/lib/rack/oauth2/server/utils.rb +4 -4
- data/lib/rack/oauth2/server.rb +53 -26
- data/lib/rack/oauth2/sinatra.rb +2 -2
- data/test/admin/api_test.rb +13 -11
- data/test/oauth/access_grant_test.rb +27 -3
- data/test/oauth/access_token_test.rb +2 -25
- data/test/oauth/server_test.rb +64 -21
- data/test/rails2/log/test.log +10567 -0
- data/test/rails3/log/test.log +15977 -0
- data/test/setup.rb +2 -2
- metadata +5 -5
data/test/setup.rb
CHANGED
@@ -93,8 +93,8 @@ class Test::Unit::TestCase
|
|
93
93
|
|
94
94
|
def setup
|
95
95
|
Server.database = DATABASE
|
96
|
-
Server::Admin.
|
97
|
-
@client = Server
|
96
|
+
Server::Admin.scope = %{read write}
|
97
|
+
@client = Server.register(:display_name=>"UberClient", :redirect_uri=>"http://uberclient.dot/callback", :scope=>%w{read write oauth-admin})
|
98
98
|
end
|
99
99
|
|
100
100
|
attr_reader :client, :end_user
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-oauth2-server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1848230040
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 2.0.0.
|
10
|
+
- beta4
|
11
|
+
version: 2.0.0.beta4
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Assaf Arkin
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-17 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -159,7 +159,7 @@ licenses:
|
|
159
159
|
post_install_message: To get started, run the command oauth2-server
|
160
160
|
rdoc_options:
|
161
161
|
- --title
|
162
|
-
- rack-oauth2-server 2.0.0.
|
162
|
+
- rack-oauth2-server 2.0.0.beta4
|
163
163
|
- --main
|
164
164
|
- README.rdoc
|
165
165
|
- --webcvs
|