doorkeeper 1.4.2 → 2.0.0.alpha1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of doorkeeper might be problematic. Click here for more details.

Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +3 -0
  3. data/CHANGELOG.md +18 -11
  4. data/Gemfile +7 -7
  5. data/README.md +20 -41
  6. data/app/controllers/doorkeeper/application_controller.rb +1 -7
  7. data/app/controllers/doorkeeper/applications_controller.rb +4 -5
  8. data/app/controllers/doorkeeper/tokens_controller.rb +2 -2
  9. data/app/helpers/doorkeeper/{form_errors_helper.rb → dashboard_helper.rb} +5 -1
  10. data/app/views/doorkeeper/applications/_delete_form.html.erb +1 -1
  11. data/app/views/doorkeeper/applications/_form.html.erb +1 -1
  12. data/app/views/doorkeeper/applications/index.html.erb +1 -1
  13. data/config/locales/en.yml +3 -3
  14. data/lib/doorkeeper.rb +15 -6
  15. data/lib/doorkeeper/config.rb +18 -24
  16. data/lib/doorkeeper/engine.rb +1 -6
  17. data/lib/doorkeeper/generators/doorkeeper/mongo_mapper/indexes_generator.rb +12 -0
  18. data/lib/{generators/doorkeeper → doorkeeper/generators/doorkeeper/mongo_mapper}/templates/indexes.rb +0 -0
  19. data/lib/doorkeeper/models/access_grant_mixin.rb +36 -0
  20. data/lib/doorkeeper/models/access_token_mixin.rb +121 -0
  21. data/lib/doorkeeper/models/application_mixin.rb +42 -0
  22. data/lib/doorkeeper/models/{accessible.rb → concerns/accessible.rb} +0 -0
  23. data/lib/doorkeeper/models/{expirable.rb → concerns/expirable.rb} +6 -5
  24. data/lib/doorkeeper/models/{ownership.rb → concerns/ownership.rb} +7 -7
  25. data/lib/doorkeeper/models/{revocable.rb → concerns/revocable.rb} +1 -1
  26. data/lib/doorkeeper/models/concerns/scopes.rb +17 -0
  27. data/lib/doorkeeper/oauth/authorization/token.rb +6 -6
  28. data/lib/doorkeeper/oauth/client.rb +1 -1
  29. data/lib/doorkeeper/oauth/password_access_token_request.rb +3 -3
  30. data/lib/doorkeeper/oauth/refresh_token_request.rb +6 -6
  31. data/lib/doorkeeper/oauth/token.rb +3 -2
  32. data/lib/doorkeeper/orm/active_record.rb +17 -0
  33. data/lib/doorkeeper/orm/active_record/access_grant.rb +7 -0
  34. data/lib/doorkeeper/orm/active_record/access_token.rb +20 -0
  35. data/lib/doorkeeper/{models → orm}/active_record/application.rb +1 -3
  36. data/lib/doorkeeper/orm/mongo_mapper.rb +11 -0
  37. data/lib/doorkeeper/{models → orm}/mongo_mapper/access_grant.rb +4 -5
  38. data/lib/doorkeeper/{models → orm}/mongo_mapper/access_token.rb +5 -8
  39. data/lib/doorkeeper/{models → orm}/mongo_mapper/application.rb +3 -4
  40. data/lib/doorkeeper/orm/mongoid2.rb +11 -0
  41. data/lib/doorkeeper/{models → orm}/mongoid2/access_grant.rb +5 -3
  42. data/lib/doorkeeper/{models → orm}/mongoid2/access_token.rb +10 -13
  43. data/lib/doorkeeper/{models → orm}/mongoid2/application.rb +2 -0
  44. data/lib/doorkeeper/orm/mongoid2/concerns/scopes.rb +30 -0
  45. data/lib/doorkeeper/orm/mongoid3.rb +11 -0
  46. data/lib/doorkeeper/orm/mongoid3/access_grant.rb +22 -0
  47. data/lib/doorkeeper/orm/mongoid3/access_token.rb +36 -0
  48. data/lib/doorkeeper/{models/mongoid3_4 → orm/mongoid3}/application.rb +2 -0
  49. data/lib/doorkeeper/orm/mongoid3/concerns/scopes.rb +30 -0
  50. data/lib/doorkeeper/orm/mongoid4.rb +11 -0
  51. data/lib/doorkeeper/orm/mongoid4/access_grant.rb +22 -0
  52. data/lib/doorkeeper/orm/mongoid4/access_token.rb +36 -0
  53. data/lib/doorkeeper/orm/mongoid4/application.rb +24 -0
  54. data/lib/doorkeeper/orm/mongoid4/concerns/scopes.rb +17 -0
  55. data/lib/doorkeeper/rails/helpers.rb +63 -0
  56. data/lib/doorkeeper/rails/routes.rb +1 -12
  57. data/lib/doorkeeper/request/code.rb +0 -1
  58. data/lib/doorkeeper/request/token.rb +0 -1
  59. data/lib/doorkeeper/server.rb +1 -1
  60. data/lib/doorkeeper/version.rb +1 -1
  61. data/lib/generators/doorkeeper/templates/initializer.rb +2 -1
  62. data/spec/controllers/applications_controller_spec.rb +4 -4
  63. data/spec/controllers/protected_resources_controller_spec.rb +25 -175
  64. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +2 -2
  65. data/spec/dummy/app/controllers/metal_controller.rb +2 -2
  66. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +2 -2
  67. data/spec/dummy/config/application.rb +2 -0
  68. data/spec/lib/config_spec.rb +16 -10
  69. data/spec/lib/models/expirable_spec.rb +1 -1
  70. data/spec/lib/models/revocable_spec.rb +8 -3
  71. data/spec/lib/models/scopes_spec.rb +3 -3
  72. data/spec/lib/oauth/password_access_token_request_spec.rb +1 -1
  73. data/spec/lib/oauth/token_request_spec.rb +28 -1
  74. data/spec/lib/oauth/token_spec.rb +1 -1
  75. data/spec/models/doorkeeper/application_spec.rb +1 -1
  76. data/spec/requests/applications/applications_request_spec.rb +4 -4
  77. data/spec/requests/endpoints/authorization_spec.rb +0 -23
  78. data/spec/requests/flows/implicit_grant_spec.rb +32 -0
  79. data/spec/support/shared/controllers_shared_context.rb +2 -2
  80. metadata +40 -35
  81. data/lib/doorkeeper/doorkeeper_for.rb +0 -69
  82. data/lib/doorkeeper/helpers/filter.rb +0 -64
  83. data/lib/doorkeeper/models/access_grant.rb +0 -30
  84. data/lib/doorkeeper/models/access_token.rb +0 -106
  85. data/lib/doorkeeper/models/active_record/access_grant.rb +0 -9
  86. data/lib/doorkeeper/models/active_record/access_token.rb +0 -25
  87. data/lib/doorkeeper/models/application.rb +0 -40
  88. data/lib/doorkeeper/models/mongoid/scopes.rb +0 -15
  89. data/lib/doorkeeper/models/mongoid/version.rb +0 -15
  90. data/lib/doorkeeper/models/mongoid3_4/access_grant.rb +0 -27
  91. data/lib/doorkeeper/models/mongoid3_4/access_token.rb +0 -46
  92. data/lib/doorkeeper/models/scopes.rb +0 -21
  93. data/lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb +0 -12
  94. data/script/rails +0 -5
  95. data/script/run_all +0 -14
@@ -1,6 +1,6 @@
1
1
  class FullProtectedResourcesController < ApplicationController
2
- doorkeeper_for :index
3
- doorkeeper_for :show, scopes: [:admin]
2
+ before_filter -> { doorkeeper_authorize! :admin }, only: :show
3
+ before_filter :doorkeeper_authorize!, only: :index
4
4
 
5
5
  def index
6
6
  render text: 'index'
@@ -1,9 +1,9 @@
1
1
  class MetalController < ActionController::Metal
2
2
  include AbstractController::Callbacks
3
3
  include ActionController::Head
4
- include Doorkeeper::Helpers::Filter
4
+ include Doorkeeper::Rails::Helpers
5
5
 
6
- doorkeeper_for :all
6
+ before_filter :doorkeeper_authorize!
7
7
 
8
8
  def index
9
9
  self.response_body = { ok: true }.to_json
@@ -1,11 +1,11 @@
1
1
  class SemiProtectedResourcesController < ApplicationController
2
- doorkeeper_for :index
2
+ before_filter :doorkeeper_authorize!, only: :index
3
3
 
4
4
  def index
5
5
  render text: 'protected index'
6
6
  end
7
7
 
8
8
  def show
9
- render text: 'protected show'
9
+ render text: 'non protected show'
10
10
  end
11
11
  end
@@ -50,5 +50,7 @@ module Dummy
50
50
 
51
51
  # Version of your assets, change this if you want to expire all your assets
52
52
  config.assets.version = '1.0'
53
+
54
+ I18n.enforce_available_locales = false
53
55
  end
54
56
  end
@@ -14,6 +14,22 @@ describe Doorkeeper, 'configuration' do
14
14
  end
15
15
  end
16
16
 
17
+ describe 'enable_orm' do
18
+ it 'adds specific error message to NameError exception' do
19
+ expect do
20
+ Doorkeeper.configure { orm 'hibernate' }
21
+ end.to raise_error(NameError, /ORM adapter not found \(hibernate\)/)
22
+ end
23
+
24
+ it 'does not change other exceptions' do
25
+ String.any_instance.stub(:classify) { raise NoMethodError }
26
+
27
+ expect do
28
+ Doorkeeper.configure { orm 'hibernate' }
29
+ end.to raise_error(NoMethodError, 'NoMethodError')
30
+ end
31
+ end
32
+
17
33
  describe 'admin_authenticator' do
18
34
  it 'sets the block that is accessible via authenticate_admin' do
19
35
  block = proc {}
@@ -264,16 +280,6 @@ describe Doorkeeper, 'configuration' do
264
280
  end
265
281
  end
266
282
 
267
- describe 'test_redirect_uri' do
268
- it 'can change the native_redirect_uri value' do
269
- Doorkeeper.configure do
270
- orm DOORKEEPER_ORM
271
- test_redirect_uri 'foo'
272
- end
273
- expect(subject.native_redirect_uri).to eq('foo')
274
- end
275
- end
276
-
277
283
  it 'raises an exception when configuration is not set' do
278
284
  old_config = Doorkeeper.configuration
279
285
  Doorkeeper.module_eval do
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'timecop'
3
3
  require 'active_support/time'
4
- require 'doorkeeper/models/expirable'
4
+ require 'doorkeeper/models/concerns/expirable'
5
5
 
6
6
  describe 'Expirable' do
7
7
  subject do
@@ -1,6 +1,6 @@
1
1
  require 'spec_helper'
2
2
  require 'active_support/core_ext/object/blank'
3
- require 'doorkeeper/models/revocable'
3
+ require 'doorkeeper/models/concerns/revocable'
4
4
 
5
5
  describe 'Revocable' do
6
6
  subject do
@@ -18,11 +18,16 @@ describe 'Revocable' do
18
18
  end
19
19
 
20
20
  describe :revoked? do
21
- it 'is revoked if :revoked_at is set' do
22
- allow(subject).to receive(:revoked_at).and_return(double)
21
+ it 'is revoked if :revoked_at has passed' do
22
+ allow(subject).to receive(:revoked_at).and_return(DateTime.now - 1000)
23
23
  expect(subject).to be_revoked
24
24
  end
25
25
 
26
+ it 'is not revoked if :revoked_at has not passed' do
27
+ allow(subject).to receive(:revoked_at).and_return(DateTime.now + 1000)
28
+ expect(subject).not_to be_revoked
29
+ end
30
+
26
31
  it 'is not revoked if :revoked_at is not set' do
27
32
  allow(subject).to receive(:revoked_at).and_return(nil)
28
33
  expect(subject).not_to be_revoked
@@ -2,7 +2,7 @@ require 'spec_helper'
2
2
  require 'active_support/core_ext/module/delegation'
3
3
  require 'active_support/core_ext/object/blank'
4
4
  require 'doorkeeper/oauth/scopes'
5
- require 'doorkeeper/models/scopes'
5
+ require 'doorkeeper/models/concerns/scopes'
6
6
 
7
7
  describe 'Doorkeeper::Models::Scopes' do
8
8
  subject do
@@ -33,11 +33,11 @@ describe 'Doorkeeper::Models::Scopes' do
33
33
 
34
34
  describe :includes_scope? do
35
35
  it 'should return true if at least one scope is included' do
36
- expect(subject.includes_scope?(['public', 'private'])).to be true
36
+ expect(subject.includes_scope?('public', 'private')).to be true
37
37
  end
38
38
 
39
39
  it 'should return false if no scopes are included' do
40
- expect(subject.includes_scope?(['teacher', 'student'])).to be false
40
+ expect(subject.includes_scope?('teacher', 'student')).to be false
41
41
  end
42
42
  end
43
43
  end
@@ -36,7 +36,7 @@ module Doorkeeper::OAuth
36
36
  it 'requires the owner' do
37
37
  subject.resource_owner = nil
38
38
  subject.validate
39
- expect(subject.error).to eq(:invalid_resource_owner)
39
+ expect(subject.error).to eq(:invalid_grant)
40
40
  end
41
41
 
42
42
  it 'optionally accepts the client' do
@@ -8,7 +8,7 @@ module Doorkeeper::OAuth
8
8
  client: double(:application, id: 9990),
9
9
  redirect_uri: 'http://tst.com/cb',
10
10
  state: nil,
11
- scopes: nil,
11
+ scopes: Scopes.from_string('public'),
12
12
  error: nil,
13
13
  authorizable?: true
14
14
  )
@@ -43,5 +43,32 @@ module Doorkeeper::OAuth
43
43
  allow(pre_auth).to receive(:authorizable?).and_return(false)
44
44
  expect(subject.authorize).to be_a(ErrorResponse)
45
45
  end
46
+
47
+ context 'token reuse' do
48
+ it 'creates a new token if there are no matching tokens' do
49
+ Doorkeeper.configuration.stub(:reuse_access_token).and_return(true)
50
+ expect do
51
+ subject.authorize
52
+ end.to change { Doorkeeper::AccessToken.count }.by(1)
53
+ end
54
+
55
+ it 'creates a new token if scopes do not match' do
56
+ Doorkeeper.configuration.stub(:reuse_access_token).and_return(true)
57
+ FactoryGirl.create(:access_token, application_id: pre_auth.client.id,
58
+ resource_owner_id: owner.id, scopes: '')
59
+ expect do
60
+ subject.authorize
61
+ end.to change { Doorkeeper::AccessToken.count }.by(1)
62
+ end
63
+
64
+ it 'skips token creation if there is a matching one' do
65
+ Doorkeeper.configuration.stub(:reuse_access_token).and_return(true)
66
+ FactoryGirl.create(:access_token, application_id: pre_auth.client.id,
67
+ resource_owner_id: owner.id, scopes: 'public')
68
+ expect do
69
+ subject.authorize
70
+ end.to_not change { Doorkeeper::AccessToken.count }
71
+ end
72
+ end
46
73
  end
47
74
  end
@@ -88,7 +88,7 @@ module Doorkeeper
88
88
 
89
89
  it 'calls the finder if token was found' do
90
90
  token = ->(r) { 'token' }
91
- expect(AccessToken).to receive(:authenticate).with('token')
91
+ expect(AccessToken).to receive(:by_token).with('token')
92
92
  Token.authenticate double, token
93
93
  end
94
94
  end
@@ -169,7 +169,7 @@ module Doorkeeper
169
169
  describe :authenticate do
170
170
  it 'finds the application via uid/secret' do
171
171
  app = FactoryGirl.create :application
172
- authenticated = Application.authenticate(app.uid, app.secret)
172
+ authenticated = Application.by_uid_and_secret(app.uid, app.secret)
173
173
  expect(authenticated).to eq(app)
174
174
  end
175
175
  end
@@ -7,8 +7,8 @@ feature 'Adding applications' do
7
7
  end
8
8
 
9
9
  scenario 'adding a valid app' do
10
- fill_in 'application_name', with: 'My Application'
11
- fill_in 'application_redirect_uri', with: 'http://example.com'
10
+ fill_in 'doorkeeper_application[name]', with: 'My Application'
11
+ fill_in 'doorkeeper_application[redirect_uri]', with: 'http://example.com'
12
12
  click_button 'Submit'
13
13
  i_should_see 'Application created'
14
14
  i_should_see 'My Application'
@@ -55,7 +55,7 @@ feature 'Edit application' do
55
55
  end
56
56
 
57
57
  scenario 'updating a valid app' do
58
- fill_in 'application[name]', with: 'Serious app'
58
+ fill_in 'doorkeeper_application[name]', with: 'Serious app'
59
59
  click_button 'Submit'
60
60
  i_should_see 'Application updated'
61
61
  i_should_see 'Serious app'
@@ -63,7 +63,7 @@ feature 'Edit application' do
63
63
  end
64
64
 
65
65
  scenario 'updating an invalid app' do
66
- fill_in 'application[name]', with: ''
66
+ fill_in 'doorkeeper_application[name]', with: ''
67
67
  click_button 'Submit'
68
68
  i_should_see 'Whoops! Check your form for possible errors'
69
69
  end
@@ -51,27 +51,4 @@ feature 'Authorization endpoint' do
51
51
  i_should_see_translated_error_message :unsupported_response_type
52
52
  end
53
53
  end
54
-
55
- context 'forgery protection enabled' do
56
- before do
57
- ActionController::Base.allow_forgery_protection = true
58
- end
59
-
60
- after do
61
- ActionController::Base.allow_forgery_protection = false
62
- end
63
-
64
- background do
65
- create_resource_owner
66
- sign_in
67
- end
68
-
69
- scenario 'raises exception on forged requests' do
70
- ActionController::Base.any_instance.should_receive(:handle_unverified_request)
71
- post "/oauth/authorize",
72
- client_id: @client.uid,
73
- redirect_uri: @client.redirect_uri,
74
- response_type: 'code'
75
- end
76
- end
77
54
  end
@@ -16,4 +16,36 @@ feature 'Implicit Grant Flow' do
16
16
 
17
17
  i_should_be_on_client_callback @client
18
18
  end
19
+
20
+ context 'token reuse' do
21
+ scenario 'should return a new token each request' do
22
+ Doorkeeper.configuration.stub(:reuse_access_token).and_return(false)
23
+
24
+ token = client_is_authorized(@client, @resource_owner)
25
+
26
+ post "/oauth/authorize",
27
+ client_id: @client.uid,
28
+ state: '',
29
+ redirect_uri: @client.redirect_uri,
30
+ response_type: 'token',
31
+ commit: 'Authorize'
32
+
33
+ expect(response.location).not_to include(token.token)
34
+ end
35
+
36
+ scenario 'should return the same token if it is still accessible' do
37
+ Doorkeeper.configuration.stub(:reuse_access_token).and_return(true)
38
+
39
+ token = client_is_authorized(@client, @resource_owner)
40
+
41
+ post "/oauth/authorize",
42
+ client_id: @client.uid,
43
+ state: '',
44
+ redirect_uri: @client.redirect_uri,
45
+ response_type: 'token',
46
+ commit: 'Authorize'
47
+
48
+ expect(response.location).to include(token.token)
49
+ end
50
+ end
19
51
  end
@@ -8,7 +8,7 @@ shared_context 'valid token', token: :valid do
8
8
  end
9
9
 
10
10
  before :each do
11
- allow(Doorkeeper::AccessToken).to receive(:authenticate).with(token_string).and_return(token)
11
+ allow(Doorkeeper::AccessToken).to receive(:by_token).with(token_string).and_return(token)
12
12
  end
13
13
  end
14
14
 
@@ -22,7 +22,7 @@ shared_context 'invalid token', token: :invalid do
22
22
  end
23
23
 
24
24
  before :each do
25
- allow(Doorkeeper::AccessToken).to receive(:authenticate).with(token_string).and_return(token)
25
+ allow(Doorkeeper::AccessToken).to receive(:by_token).with(token_string).and_return(token)
26
26
  end
27
27
  end
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 2.0.0.alpha1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Elias Philipp
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-03-03 00:00:00.000000000 Z
12
+ date: 2014-10-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -191,7 +191,7 @@ files:
191
191
  - app/controllers/doorkeeper/authorized_applications_controller.rb
192
192
  - app/controllers/doorkeeper/token_info_controller.rb
193
193
  - app/controllers/doorkeeper/tokens_controller.rb
194
- - app/helpers/doorkeeper/form_errors_helper.rb
194
+ - app/helpers/doorkeeper/dashboard_helper.rb
195
195
  - app/validators/redirect_uri_validator.rb
196
196
  - app/views/doorkeeper/applications/_delete_form.html.erb
197
197
  - app/views/doorkeeper/applications/_form.html.erb
@@ -210,33 +210,19 @@ files:
210
210
  - doorkeeper.gemspec
211
211
  - lib/doorkeeper.rb
212
212
  - lib/doorkeeper/config.rb
213
- - lib/doorkeeper/doorkeeper_for.rb
214
213
  - lib/doorkeeper/engine.rb
215
214
  - lib/doorkeeper/errors.rb
215
+ - lib/doorkeeper/generators/doorkeeper/mongo_mapper/indexes_generator.rb
216
+ - lib/doorkeeper/generators/doorkeeper/mongo_mapper/templates/indexes.rb
216
217
  - lib/doorkeeper/helpers/controller.rb
217
- - lib/doorkeeper/helpers/filter.rb
218
- - lib/doorkeeper/models/access_grant.rb
219
- - lib/doorkeeper/models/access_token.rb
220
- - lib/doorkeeper/models/accessible.rb
221
- - lib/doorkeeper/models/active_record/access_grant.rb
222
- - lib/doorkeeper/models/active_record/access_token.rb
223
- - lib/doorkeeper/models/active_record/application.rb
224
- - lib/doorkeeper/models/application.rb
225
- - lib/doorkeeper/models/expirable.rb
226
- - lib/doorkeeper/models/mongo_mapper/access_grant.rb
227
- - lib/doorkeeper/models/mongo_mapper/access_token.rb
228
- - lib/doorkeeper/models/mongo_mapper/application.rb
229
- - lib/doorkeeper/models/mongoid/scopes.rb
230
- - lib/doorkeeper/models/mongoid/version.rb
231
- - lib/doorkeeper/models/mongoid2/access_grant.rb
232
- - lib/doorkeeper/models/mongoid2/access_token.rb
233
- - lib/doorkeeper/models/mongoid2/application.rb
234
- - lib/doorkeeper/models/mongoid3_4/access_grant.rb
235
- - lib/doorkeeper/models/mongoid3_4/access_token.rb
236
- - lib/doorkeeper/models/mongoid3_4/application.rb
237
- - lib/doorkeeper/models/ownership.rb
238
- - lib/doorkeeper/models/revocable.rb
239
- - lib/doorkeeper/models/scopes.rb
218
+ - lib/doorkeeper/models/access_grant_mixin.rb
219
+ - lib/doorkeeper/models/access_token_mixin.rb
220
+ - lib/doorkeeper/models/application_mixin.rb
221
+ - lib/doorkeeper/models/concerns/accessible.rb
222
+ - lib/doorkeeper/models/concerns/expirable.rb
223
+ - lib/doorkeeper/models/concerns/ownership.rb
224
+ - lib/doorkeeper/models/concerns/revocable.rb
225
+ - lib/doorkeeper/models/concerns/scopes.rb
240
226
  - lib/doorkeeper/oauth/authorization/code.rb
241
227
  - lib/doorkeeper/oauth/authorization/token.rb
242
228
  - lib/doorkeeper/oauth/authorization/uri_builder.rb
@@ -265,6 +251,30 @@ files:
265
251
  - lib/doorkeeper/oauth/token.rb
266
252
  - lib/doorkeeper/oauth/token_request.rb
267
253
  - lib/doorkeeper/oauth/token_response.rb
254
+ - lib/doorkeeper/orm/active_record.rb
255
+ - lib/doorkeeper/orm/active_record/access_grant.rb
256
+ - lib/doorkeeper/orm/active_record/access_token.rb
257
+ - lib/doorkeeper/orm/active_record/application.rb
258
+ - lib/doorkeeper/orm/mongo_mapper.rb
259
+ - lib/doorkeeper/orm/mongo_mapper/access_grant.rb
260
+ - lib/doorkeeper/orm/mongo_mapper/access_token.rb
261
+ - lib/doorkeeper/orm/mongo_mapper/application.rb
262
+ - lib/doorkeeper/orm/mongoid2.rb
263
+ - lib/doorkeeper/orm/mongoid2/access_grant.rb
264
+ - lib/doorkeeper/orm/mongoid2/access_token.rb
265
+ - lib/doorkeeper/orm/mongoid2/application.rb
266
+ - lib/doorkeeper/orm/mongoid2/concerns/scopes.rb
267
+ - lib/doorkeeper/orm/mongoid3.rb
268
+ - lib/doorkeeper/orm/mongoid3/access_grant.rb
269
+ - lib/doorkeeper/orm/mongoid3/access_token.rb
270
+ - lib/doorkeeper/orm/mongoid3/application.rb
271
+ - lib/doorkeeper/orm/mongoid3/concerns/scopes.rb
272
+ - lib/doorkeeper/orm/mongoid4.rb
273
+ - lib/doorkeeper/orm/mongoid4/access_grant.rb
274
+ - lib/doorkeeper/orm/mongoid4/access_token.rb
275
+ - lib/doorkeeper/orm/mongoid4/application.rb
276
+ - lib/doorkeeper/orm/mongoid4/concerns/scopes.rb
277
+ - lib/doorkeeper/rails/helpers.rb
268
278
  - lib/doorkeeper/rails/routes.rb
269
279
  - lib/doorkeeper/rails/routes/mapper.rb
270
280
  - lib/doorkeeper/rails/routes/mapping.rb
@@ -281,15 +291,11 @@ files:
281
291
  - lib/generators/doorkeeper/application_owner_generator.rb
282
292
  - lib/generators/doorkeeper/install_generator.rb
283
293
  - lib/generators/doorkeeper/migration_generator.rb
284
- - lib/generators/doorkeeper/mongo_mapper/indexes_generator.rb
285
294
  - lib/generators/doorkeeper/templates/README
286
295
  - lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb
287
- - lib/generators/doorkeeper/templates/indexes.rb
288
296
  - lib/generators/doorkeeper/templates/initializer.rb
289
297
  - lib/generators/doorkeeper/templates/migration.rb
290
298
  - lib/generators/doorkeeper/views_generator.rb
291
- - script/rails
292
- - script/run_all
293
299
  - spec/controllers/applications_controller_spec.rb
294
300
  - spec/controllers/authorizations_controller_spec.rb
295
301
  - spec/controllers/protected_resources_controller_spec.rb
@@ -426,14 +432,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
426
432
  version: '0'
427
433
  required_rubygems_version: !ruby/object:Gem::Requirement
428
434
  requirements:
429
- - - ">="
435
+ - - ">"
430
436
  - !ruby/object:Gem::Version
431
- version: '0'
437
+ version: 1.3.1
432
438
  requirements: []
433
439
  rubyforge_project:
434
- rubygems_version: 2.4.5
440
+ rubygems_version: 2.2.2
435
441
  signing_key:
436
442
  specification_version: 4
437
443
  summary: Doorkeeper is an OAuth 2 provider for Rails.
438
444
  test_files: []
439
- has_rdoc: