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/test/setup.rb CHANGED
@@ -25,6 +25,7 @@ Rack::OAuth2::Server::Admin.configure do |config|
25
25
  config.set :logging, true
26
26
  config.set :raise_errors, true
27
27
  config.set :dump_errors, true
28
+ config.oauth.expires_in = 86400 # a day
28
29
  config.oauth.logger = $logger
29
30
  end
30
31
 
@@ -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
- date: 2011-07-18 00:00:00 Z
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
- prerelease: false
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: "1.1"
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
- requirement: &id002 !ruby/object:Gem::Requirement
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: "1"
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
- requirement: &id003 !ruby/object:Gem::Requirement
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: "0"
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
- requirement: &id004 !ruby/object:Gem::Requirement
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: "1.1"
54
+ - !ruby/object:Gem::Version
55
+ version: '1.1'
57
56
  type: :runtime
58
- version_requirements: *id004
59
- description: Because you don't allow strangers into your app, and OAuth 2.0 is the new awesome.
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.3.0
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: "0"
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
160
161
  requirements: []
161
-
162
162
  rubyforge_project:
163
- rubygems_version: 1.7.2
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: