doorkeeper-sequel 1.5.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +5 -5
  2. data/.editorconfig +6 -0
  3. data/.gitignore +1 -0
  4. data/.gitmodules +0 -1
  5. data/.rubocop.yml +29 -2
  6. data/.travis.yml +3 -12
  7. data/CHANGELOG.md +13 -3
  8. data/Gemfile +13 -9
  9. data/README.md +18 -3
  10. data/Rakefile +22 -18
  11. data/config/locales/en.yml +11 -0
  12. data/doorkeeper-sequel.gemspec +27 -23
  13. data/gemfiles/rails-5.0.gemfile +9 -6
  14. data/gemfiles/rails-5.1.gemfile +9 -6
  15. data/gemfiles/rails-5.2.gemfile +9 -6
  16. data/gemfiles/rails-6.0.gemfile +14 -0
  17. data/lib/doorkeeper-sequel.rb +21 -17
  18. data/lib/doorkeeper-sequel/gem_version.rb +5 -3
  19. data/lib/doorkeeper-sequel/generators/application_owner_generator.rb +5 -3
  20. data/lib/doorkeeper-sequel/generators/concerns/migration_actions.rb +8 -6
  21. data/lib/doorkeeper-sequel/generators/confidential_applications_generator.rb +5 -3
  22. data/lib/doorkeeper-sequel/generators/migration_generator.rb +5 -3
  23. data/lib/doorkeeper-sequel/generators/pkce_generator.rb +16 -0
  24. data/lib/doorkeeper-sequel/generators/polymorphic_resource_owner_generator.rb +16 -0
  25. data/lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb +5 -3
  26. data/lib/doorkeeper-sequel/generators/templates/add_confidential_to_application_migration.rb +2 -0
  27. data/lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb +3 -1
  28. data/lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb +3 -1
  29. data/lib/doorkeeper-sequel/generators/templates/create_doorkeeper_tables.rb +7 -3
  30. data/lib/doorkeeper-sequel/generators/templates/enable_pkce_migration.rb +10 -0
  31. data/lib/doorkeeper-sequel/generators/templates/enable_polymorphic_resource_owner_migration.rb +15 -0
  32. data/lib/doorkeeper-sequel/mixins/access_grant_mixin.rb +45 -7
  33. data/lib/doorkeeper-sequel/mixins/access_token_mixin.rb +154 -42
  34. data/lib/doorkeeper-sequel/mixins/application_mixin.rb +116 -22
  35. data/lib/doorkeeper-sequel/mixins/concerns/ownership.rb +2 -0
  36. data/lib/doorkeeper-sequel/mixins/concerns/sequel_compat.rb +33 -3
  37. data/lib/doorkeeper-sequel/railtie.rb +3 -1
  38. data/lib/doorkeeper-sequel/tasks/doorkeeper-sequel.rake +20 -3
  39. data/lib/doorkeeper-sequel/validators/redirect_uri_validator.rb +35 -6
  40. data/lib/doorkeeper-sequel/version.rb +3 -1
  41. data/lib/doorkeeper/orm/sequel.rb +11 -4
  42. data/lib/doorkeeper/orm/sequel/access_grant.rb +18 -0
  43. data/lib/doorkeeper/orm/sequel/access_token.rb +6 -0
  44. data/lib/doorkeeper/orm/sequel/application.rb +34 -3
  45. data/lib/doorkeeper/orm/sequel/stale_records_cleaner.rb +26 -0
  46. data/lib/doorkeeper/redirect_uri_validator.rb +9 -0
  47. data/spec/stubs/config/initializers/db.rb +6 -1
  48. data/spec/stubs/spec_helper_integration.rb +9 -11
  49. metadata +225 -235
  50. data/gemfiles/rails-4.2.gemfile +0 -13
@@ -1,5 +1,23 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Doorkeeper
2
4
  class AccessGrant < Sequel::Model(:oauth_access_grants)
3
5
  include DoorkeeperSequel::AccessGrantMixin
6
+
7
+ def plaintext_token
8
+ if secret_strategy.allows_restoring_secrets?
9
+ secret_strategy.restore_secret(self, :token)
10
+ else
11
+ @raw_token
12
+ end
13
+ end
14
+
15
+ def uses_pkce?
16
+ pkce_supported? && code_challenge.present?
17
+ end
18
+
19
+ def pkce_supported?
20
+ respond_to?(:code_challenge)
21
+ end
4
22
  end
5
23
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Doorkeeper
2
4
  class AccessToken < Sequel::Model(:oauth_access_tokens)
3
5
  include DoorkeeperSequel::AccessTokenMixin
@@ -18,6 +20,10 @@ module Doorkeeper
18
20
  def refresh_token_revoked_on_use?
19
21
  columns.include?(:previous_refresh_token)
20
22
  end
23
+
24
+ def polymorphic_resource_owner?
25
+ columns.include?(:resource_owner_type)
26
+ end
21
27
  end
22
28
  end
23
29
  end
@@ -1,18 +1,49 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Doorkeeper
2
4
  class Application < Sequel::Model(:oauth_applications)
3
5
  include DoorkeeperSequel::ApplicationMixin
4
6
 
5
- one_to_many :authorized_tokens, class: 'Doorkeeper::AccessToken', conditions: { revoked_at: nil }
6
- many_to_many :authorized_applications, join_table: :oauth_access_tokens,
7
- class: self, left_key: :id, right_key: :application_id
7
+ one_to_many :authorized_tokens,
8
+ class: "Doorkeeper::AccessToken",
9
+ conditions: { revoked_at: nil }
10
+
11
+ many_to_many :authorized_applications,
12
+ join_table: :oauth_access_tokens,
13
+ class: self,
14
+ left_key: :id,
15
+ right_key: :application_id
8
16
 
9
17
  def redirect_uri=(uris)
10
18
  super(uris.is_a?(Array) ? uris.join("\n") : uris)
11
19
  end
12
20
 
21
+ def plaintext_secret
22
+ if secret_strategy.allows_restoring_secrets?
23
+ secret_strategy.restore_secret(self, :secret)
24
+ else
25
+ @raw_secret
26
+ end
27
+ end
28
+
29
+ def to_json(options = {})
30
+ json = super(options)
31
+ hash = JSON.parse(json, symbolize_names: false)
32
+ if hash.key?("secret")
33
+ hash["secret"] = plaintext_secret
34
+ json = hash.to_json
35
+ end
36
+ json
37
+ end
38
+
13
39
  def self.authorized_for(resource_owner)
14
40
  resource_access_tokens = AccessToken.active_for(resource_owner)
15
41
  where(id: resource_access_tokens.select_map(:application_id)).all
16
42
  end
43
+
44
+ def self.revoke_tokens_and_grants_for(id, resource_owner)
45
+ AccessToken.revoke_all_for(id, resource_owner)
46
+ AccessGrant.revoke_all_for(id, resource_owner)
47
+ end
17
48
  end
18
49
  end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Doorkeeper
4
+ module Orm
5
+ module Sequel
6
+ class StaleRecordsCleaner
7
+ def initialize(base_scope)
8
+ @base_scope = base_scope
9
+ end
10
+
11
+ def clean_revoked
12
+ @base_scope
13
+ .where(::Sequel.~(revoked_at: nil))
14
+ .where { revoked_at < Time.current }
15
+ .delete
16
+ end
17
+
18
+ def clean_expired(ttl)
19
+ @base_scope
20
+ .where { created_at < (Time.current - ttl) }
21
+ .delete
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "doorkeeper-sequel/validators/redirect_uri_validator"
4
+
5
+ module Doorkeeper
6
+ module RedirectUriValidator
7
+ extend DoorkeeperSequel::RedirectUriValidator
8
+ end
9
+ end
@@ -28,7 +28,8 @@ DB.create_table :oauth_access_grants do
28
28
  primary_key :id
29
29
  column :application_id, Integer
30
30
 
31
- column :resource_owner_id, Integer, null: false
31
+ column :resource_owner_id, Integer, null: false, index: true
32
+ column :resource_owner_type, String, index: true
32
33
 
33
34
  column :token, String, size: 255, null: false, index: { unique: true }
34
35
  column :expires_in, Integer, null: false
@@ -36,6 +37,9 @@ DB.create_table :oauth_access_grants do
36
37
  column :created_at, DateTime, null: false
37
38
  column :revoked_at, DateTime
38
39
  column :scopes, String, size: 255
40
+
41
+ column :code_challenge, String
42
+ column :code_challenge_method, String
39
43
  end
40
44
 
41
45
  DB.create_table :oauth_access_tokens do
@@ -43,6 +47,7 @@ DB.create_table :oauth_access_tokens do
43
47
  column :application_id, Integer
44
48
 
45
49
  column :resource_owner_id, Integer, index: true
50
+ column :resource_owner_type, String, index: true
46
51
 
47
52
  # If you use a custom token generator you may need to change this column
48
53
  # from string to text, so that it accepts tokens larger than 255
@@ -1,17 +1,17 @@
1
- ENV['RAILS_ENV'] ||= 'test'
1
+ ENV["RAILS_ENV"] ||= "test"
2
2
 
3
3
  DOORKEEPER_ORM = :sequel
4
4
 
5
5
  $LOAD_PATH.unshift File.dirname(__FILE__)
6
6
 
7
- require 'capybara/rspec'
8
- require 'dummy/config/environment'
9
- require 'rspec/rails'
10
- require 'generator_spec/test_case'
7
+ require "capybara/rspec"
8
+ require "dummy/config/environment"
9
+ require "rspec/rails"
10
+ require "generator_spec/test_case"
11
11
 
12
12
  # Load JRuby SQLite3 if in that platform
13
13
  begin
14
- require 'jdbc/sqlite3'
14
+ require "jdbc/sqlite3"
15
15
  Jdbc::SQLite3.load_driver
16
16
  rescue LoadError
17
17
  end
@@ -22,12 +22,10 @@ Rails.logger.info "====> Ruby version: #{RUBY_VERSION}"
22
22
 
23
23
  require "support/orm/#{DOORKEEPER_ORM}"
24
24
 
25
- ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), '../')
25
+ ENGINE_RAILS_ROOT = File.join(File.dirname(__FILE__), "../")
26
26
 
27
27
  Dir["#{File.dirname(__FILE__)}/support/{dependencies,helpers,shared}/*.rb"].each { |f| require f }
28
-
29
- # Remove after dropping support of Rails 4.2
30
- require "#{File.dirname(__FILE__)}/support/http_method_shim.rb"
28
+ Dir["#{ENGINE_RAILS_ROOT}/doorkeeper/lib/doorkeeper/config/*.rb"].each { |f| require f }
31
29
 
32
30
  RSpec.configure do |config|
33
31
  config.infer_spec_type_from_file_location!
@@ -45,5 +43,5 @@ RSpec.configure do |config|
45
43
  DB.transaction(rollback: :always, auto_savepoint: true) { example.run }
46
44
  end
47
45
 
48
- config.order = 'random'
46
+ config.order = "random"
49
47
  end
metadata CHANGED
@@ -1,35 +1,49 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper-sequel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Bulai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-03 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bcrypt
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: doorkeeper
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: 4.2.6
33
+ version: 5.0.0
20
34
  - - "<"
21
35
  - !ruby/object:Gem::Version
22
- version: '5.0'
36
+ version: '5.6'
23
37
  type: :runtime
24
38
  prerelease: false
25
39
  version_requirements: !ruby/object:Gem::Requirement
26
40
  requirements:
27
41
  - - ">="
28
42
  - !ruby/object:Gem::Version
29
- version: 4.2.6
43
+ version: 5.0.0
30
44
  - - "<"
31
45
  - !ruby/object:Gem::Version
32
- version: '5.0'
46
+ version: '5.6'
33
47
  - !ruby/object:Gem::Dependency
34
48
  name: sequel
35
49
  requirement: !ruby/object:Gem::Requirement
@@ -91,39 +105,39 @@ dependencies:
91
105
  - !ruby/object:Gem::Version
92
106
  version: '6'
93
107
  - !ruby/object:Gem::Dependency
94
- name: grape
108
+ name: capybara
95
109
  requirement: !ruby/object:Gem::Requirement
96
110
  requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: '2.14'
97
114
  - - ">="
98
115
  - !ruby/object:Gem::Version
99
- version: '0'
116
+ version: 2.14.0
100
117
  type: :development
101
118
  prerelease: false
102
119
  version_requirements: !ruby/object:Gem::Requirement
103
120
  requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '2.14'
104
124
  - - ">="
105
125
  - !ruby/object:Gem::Version
106
- version: '0'
126
+ version: 2.14.0
107
127
  - !ruby/object:Gem::Dependency
108
- name: capybara
128
+ name: coveralls
109
129
  requirement: !ruby/object:Gem::Requirement
110
130
  requirements:
111
- - - "~>"
112
- - !ruby/object:Gem::Version
113
- version: '2.14'
114
131
  - - ">="
115
132
  - !ruby/object:Gem::Version
116
- version: 2.14.0
133
+ version: '0'
117
134
  type: :development
118
135
  prerelease: false
119
136
  version_requirements: !ruby/object:Gem::Requirement
120
137
  requirements:
121
- - - "~>"
122
- - !ruby/object:Gem::Version
123
- version: '2.14'
124
138
  - - ">="
125
139
  - !ruby/object:Gem::Version
126
- version: 2.14.0
140
+ version: '0'
127
141
  - !ruby/object:Gem::Dependency
128
142
  name: database_cleaner
129
143
  requirement: !ruby/object:Gem::Requirement
@@ -172,6 +186,20 @@ dependencies:
172
186
  - - "~>"
173
187
  - !ruby/object:Gem::Version
174
188
  version: 0.9.4
189
+ - !ruby/object:Gem::Dependency
190
+ name: grape
191
+ requirement: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ type: :development
197
+ prerelease: false
198
+ version_requirements: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
175
203
  - !ruby/object:Gem::Dependency
176
204
  name: rspec-rails
177
205
  requirement: !ruby/object:Gem::Requirement
@@ -193,6 +221,7 @@ executables: []
193
221
  extensions: []
194
222
  extra_rdoc_files: []
195
223
  files:
224
+ - ".editorconfig"
196
225
  - ".gitignore"
197
226
  - ".gitmodules"
198
227
  - ".rspec"
@@ -205,21 +234,25 @@ files:
205
234
  - Rakefile
206
235
  - config/locales/en.yml
207
236
  - doorkeeper-sequel.gemspec
208
- - gemfiles/rails-4.2.gemfile
209
237
  - gemfiles/rails-5.0.gemfile
210
238
  - gemfiles/rails-5.1.gemfile
211
239
  - gemfiles/rails-5.2.gemfile
240
+ - gemfiles/rails-6.0.gemfile
212
241
  - lib/doorkeeper-sequel.rb
213
242
  - lib/doorkeeper-sequel/gem_version.rb
214
243
  - lib/doorkeeper-sequel/generators/application_owner_generator.rb
215
244
  - lib/doorkeeper-sequel/generators/concerns/migration_actions.rb
216
245
  - lib/doorkeeper-sequel/generators/confidential_applications_generator.rb
217
246
  - lib/doorkeeper-sequel/generators/migration_generator.rb
247
+ - lib/doorkeeper-sequel/generators/pkce_generator.rb
248
+ - lib/doorkeeper-sequel/generators/polymorphic_resource_owner_generator.rb
218
249
  - lib/doorkeeper-sequel/generators/previous_refresh_token_generator.rb
219
250
  - lib/doorkeeper-sequel/generators/templates/add_confidential_to_application_migration.rb
220
251
  - lib/doorkeeper-sequel/generators/templates/add_owner_to_application.rb
221
252
  - lib/doorkeeper-sequel/generators/templates/add_previous_refresh_token_to_access_tokens.rb
222
253
  - lib/doorkeeper-sequel/generators/templates/create_doorkeeper_tables.rb
254
+ - lib/doorkeeper-sequel/generators/templates/enable_pkce_migration.rb
255
+ - lib/doorkeeper-sequel/generators/templates/enable_polymorphic_resource_owner_migration.rb
223
256
  - lib/doorkeeper-sequel/mixins/access_grant_mixin.rb
224
257
  - lib/doorkeeper-sequel/mixins/access_token_mixin.rb
225
258
  - lib/doorkeeper-sequel/mixins/application_mixin.rb
@@ -233,13 +266,20 @@ files:
233
266
  - lib/doorkeeper/orm/sequel/access_grant.rb
234
267
  - lib/doorkeeper/orm/sequel/access_token.rb
235
268
  - lib/doorkeeper/orm/sequel/application.rb
236
- - spec/controllers/application_metal_controller.rb
269
+ - lib/doorkeeper/orm/sequel/stale_records_cleaner.rb
270
+ - lib/doorkeeper/redirect_uri_validator.rb
271
+ - spec/controllers/application_metal_controller_spec.rb
237
272
  - spec/controllers/applications_controller_spec.rb
238
273
  - spec/controllers/authorizations_controller_spec.rb
239
274
  - spec/controllers/protected_resources_controller_spec.rb
240
275
  - spec/controllers/token_info_controller_spec.rb
241
276
  - spec/controllers/tokens_controller_spec.rb
277
+ - spec/doorkeeper/redirect_uri_validator_spec.rb
278
+ - spec/doorkeeper/server_spec.rb
279
+ - spec/doorkeeper/stale_records_cleaner_spec.rb
280
+ - spec/doorkeeper/version_spec.rb
242
281
  - spec/dummy/Rakefile
282
+ - spec/dummy/app/assets/config/manifest.js
243
283
  - spec/dummy/app/controllers/application_controller.rb
244
284
  - spec/dummy/app/controllers/custom_authorizations_controller.rb
245
285
  - spec/dummy/app/controllers/full_protected_resources_controller.rb
@@ -271,7 +311,8 @@ files:
271
311
  - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
272
312
  - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
273
313
  - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
274
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_application.rb
314
+ - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
315
+ - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
275
316
  - spec/dummy/db/schema.rb
276
317
  - spec/dummy/log/test.log
277
318
  - spec/dummy/public/404.html
@@ -279,70 +320,38 @@ files:
279
320
  - spec/dummy/public/500.html
280
321
  - spec/dummy/public/favicon.ico
281
322
  - spec/dummy/script/rails
282
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pa3wNbGHqFC6gxrMvdOJiP6gPwFv9VJ_npjEfRWxAE.cache
283
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/0x/0x7itSE_jjN9NM8w3jE4isMgaQPBrVx0prZCwBURBV0.cache
284
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/3P/3PoguHEOEeItUjmwC74MWLLP-_Ijow7798bF5U6K2dw.cache
285
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/4Q/4QEkO7sOQsz2KI7mJWxhmltotR8iDKMhV-8Gui8l1Yo.cache
286
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_AVHXD_fQP3S2gUiYF1Azv90b6luuMnAM0hxD901y0.cache
287
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/6b/6b0anrSo7Fvoc05t4Ca0zZmfS_cpERy1DsG3ea6lBOg.cache
288
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/6k/6kyl2zElqd6QNgJLE7Ej-F9Xofwmq0OiAIJTHGtoCt8.cache
289
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/9D/9DkYxrjE-y5KTPxxIo5Zs3AOaylSDDJPPWbghYbc6tA.cache
290
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/BA/BAC3ZaGoeZ9Od-kKg-UQYelvRgsCa0H72-52nLdcTNw.cache
291
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/Bw6Nimjvy5Yv1AYbZb1t-v0eMNhv-bhwBzR-b5mY7FU.cache
292
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqQWjMAz8yjZQlMC_dUsztaOxGruI2IXyGAAUF9SvQ0.cache
293
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Hc/HcIx4yYPg3w0vv-Cj49orJw9fudDS4Qpe3WXtuej7MI.cache
294
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ht/HtCMc1ZaTgZy2o1DFs1PbbISOEzOsyW0aFFkquK8ywY.cache
295
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_D9clwKidN28hnVB1O3zEfKDwg90Usdb5ToKiPq_aw.cache
296
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jg/JgpBOeANnJqUX61iOsyq9gnH5CdODzg18IvAQYJC_PE.cache
297
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ji/JitNKkP1dYdu9ObSdIkkEAsiFxEmRO5oy1UIyhT_hYs.cache
298
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqTLVvnY2AgGkHftWPwqt_HkbwhYRsmgHxk37VqKJAY.cache
299
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/K-/K-zIshtjhzfsKunHgtf4oRnTZuW_C9lUh_vP8EuydZY.cache
300
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/LF/LF3zCtek7hbLgoNRiXnEYsN9BkXVGw5dqB2W-pALTcU.cache
301
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/QX/QXcp8DweOJ6BfMedGMfeHvVXv2hjDIleln1LSJk7vOE.cache
302
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Rw/RwtI_j7fJhgLfhnUQlGxoS-oFn2XExsMONzyxeaNhQ0.cache
303
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/T3/T3h82qJsdqVlH178VSlblhU1evf9RZq83rqKMwjdRKI.cache
304
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ta/TaYxNn81MhqC3DnMC6_y_Q7xap5Ntn4ggFo94EUaiak.cache
305
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wn/WnJTlULZ65547f83Wc-LjLXHGBPvOi_0ItAaE_6SlzY.cache
306
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wq/WqbLVKOcTMZtttygYt_ncr1mGIDrzevSTaPGNmzV1D8.cache
307
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/YF/YF60qiQ28QMoYDrLmrbHWZr7X7bl5MxVPR5QrrVCFak.cache
308
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yf/YfJJZvm_NONHd4eCasDibCcRapZ_WYIO5MUxSUUbYFk.cache
309
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yi/YigT9tpj4dQzAx0EBR0E5d3g7wtv9X1Qw7eprYkoeNE.cache
310
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0e47cT2a-21U-w-3gkbgqC3o5jWnEzOB8vW06aJH1E.cache
311
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/dL/dL7SLUWUIeVdyA1UuH-rvif0nzesOar3LdEtqzdb4bE.cache
312
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/f1/f11L16ip-n_en5vxM7LnyFPv_A9VDsPUKXzg-hDG0dE.cache
313
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
314
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/fX/fXlPiyPj8HG3QoJDYpup0DTLBnq8hw6Np2VeMHWKuaQ.cache
315
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/g5/g5VAxZ-YK0jKJukhexFCoUQqI2yLS1eOYNbU__THPvo.cache
316
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/hU/hUU3IwUkZwk7JZj3LvnwlHPmwPh0Dz9B2Fv0aj17VJw.cache
317
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
318
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
319
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/lx/lxLzW5UwcFlFj1MV5uZ_icpe7sCVc6_WUMMLMqUqbzQ.cache
320
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qS/qSc-air8Wm-UxxbdyXgOBiwA1g2VgejS3oE4CTPnUJs.cache
321
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
322
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
323
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/wC/wCg1fNgvPgN-FNalk0y-pOrMrUUVpjjG_3jLzh3J29I.cache
323
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2q/2q4gLQK8jidypAwG-d22Hk7su9YThdEOX1w_AZbZgdg.cache
324
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4a/4aYsN8bQ4X6HM5LSe9uhXuRmZFvBQvZ3OYwE-IxqjAg.cache
325
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/52/52T5jdrkRnKRgAsV-kr-iT_zmDufy_-Z5UwIRMPM8Hg.cache
326
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5M/5MUJtZRAgpWm8loyfCLdqteqe3WQMXyKKWFLpQDYBJM.cache
327
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5U/5UFt8qjOIl6l7GXzikZkCXGFdQG1wV8jgPh3fJmANRQ.cache
328
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/G1/G1GKC-5u-vqWnfAXkvksyvM-yevzmePm9hx9Lykj9lQ.cache
329
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gk/GkouEZBXxnQma8BwPZl_RJgVrwtSJvX1783CQ14Uow0.cache
330
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/IS/ISEfjWVN6HMIcVvPBRfoSNgwZedPwBdD6J5x2fSB_mg.cache
331
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/MT/MTdZBIfUXALTRT2B3O_9TNoqib-Vv4EBBTk5V0tsQ9I.cache
332
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ni/Ni8PM9QgIMyZ8BGJ9RRejFYAZnbkvrkEx5VKEErQ3pk.cache
333
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/O8/O8ITu_6f7X4Rdw8wBVCtlJJHEsU-y6r4k1U9myVEfTw.cache
334
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wa/WalwFtSvf5otEGKuJ4QSYuFg8pwUQVbaePw8g0sFEpA.cache
335
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/bt/btIEur6IN4ZCEDFSTcMLU6f4gnk8dl6kSTRaUw7yXkU.cache
336
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/cI/cI6qjXh3RS7pbjfAImh4M4xKShIc5ql-5pAPvphhNCM.cache
337
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hw/hwQsncHu-O8FiqzG3NSCPN7NSNDjf3OxnVxAzYtegAE.cache
338
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/jY/jYRDqnJnnWHP71AsrDHTqfy_Sdrg43Hg1eZ6h9L_MWg.cache
339
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/o5/o52ldSMhS9LYBft-F3OdEDS6WzOLSsKTbtusg0qkHw8.cache
340
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/oO/oOuY0_fIleYiJ8S2naModAL1LBq7u7a848AG9EGR8pE.cache
341
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/oT/oT-tmj280GM69WvFzFFtSU13HUmV36eH2eEY6_m1W7U.cache
342
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/qF/qFo4sQupgDwn-ReTfZwddZndB2JVane88QDgF6PcUB4.cache
343
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/uB/uBU0Nlzpazdv1GoFSRKCGGpEz0TlNLFyuFOn6r7_4sc.cache
324
344
  - spec/factories.rb
325
345
  - spec/generators/templates/routes.rb
326
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_delete_form.html.erb
327
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_form.html.erb
328
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/edit.html.erb
329
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/index.html.erb
330
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/new.html.erb
331
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/show.html.erb
332
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/error.html.erb
333
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/new.html.erb
334
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/show.html.erb
335
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/_delete_form.html.erb
336
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/index.html.erb
337
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/admin.html.erb
338
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/application.html.erb
339
346
  - spec/grape/grape_integration_spec.rb
340
347
  - spec/helpers/doorkeeper/dashboard_helper_spec.rb
341
348
  - spec/lib/config_spec.rb
342
349
  - spec/lib/doorkeeper_spec.rb
343
350
  - spec/lib/models/expirable_spec.rb
351
+ - spec/lib/models/reusable_spec.rb
344
352
  - spec/lib/models/revocable_spec.rb
345
353
  - spec/lib/models/scopes_spec.rb
354
+ - spec/lib/models/secret_storable_spec.rb
346
355
  - spec/lib/oauth/authorization/uri_builder_spec.rb
347
356
  - spec/lib/oauth/authorization_code_request_spec.rb
348
357
  - spec/lib/oauth/base_request_spec.rb
@@ -362,6 +371,7 @@ files:
362
371
  - spec/lib/oauth/helpers/scope_checker_spec.rb
363
372
  - spec/lib/oauth/helpers/unique_token_spec.rb
364
373
  - spec/lib/oauth/helpers/uri_checker_spec.rb
374
+ - spec/lib/oauth/invalid_request_response_spec.rb
365
375
  - spec/lib/oauth/invalid_token_response_spec.rb
366
376
  - spec/lib/oauth/password_access_token_request_spec.rb
367
377
  - spec/lib/oauth/pre_authorization_spec.rb
@@ -370,8 +380,12 @@ files:
370
380
  - spec/lib/oauth/token_request_spec.rb
371
381
  - spec/lib/oauth/token_response_spec.rb
372
382
  - spec/lib/oauth/token_spec.rb
383
+ - spec/lib/option_spec.rb
373
384
  - spec/lib/request/strategy_spec.rb
374
- - spec/lib/server_spec.rb
385
+ - spec/lib/secret_storing/base_spec.rb
386
+ - spec/lib/secret_storing/bcrypt_spec.rb
387
+ - spec/lib/secret_storing/plain_spec.rb
388
+ - spec/lib/secret_storing/sha256_hash_spec.rb
375
389
  - spec/models/doorkeeper/access_grant_spec.rb
376
390
  - spec/models/doorkeeper/access_token_spec.rb
377
391
  - spec/models/doorkeeper/application_spec.rb
@@ -401,20 +415,19 @@ files:
401
415
  - spec/stubs/models/user.rb
402
416
  - spec/stubs/spec_helper_integration.rb
403
417
  - spec/stubs/support/sequel.rb
404
- - spec/support/dependencies/factory_girl.rb
418
+ - spec/support/dependencies/factory_bot.rb
419
+ - spec/support/doorkeeper_rspec.rb
405
420
  - spec/support/helpers/access_token_request_helper.rb
406
421
  - spec/support/helpers/authorization_request_helper.rb
407
422
  - spec/support/helpers/config_helper.rb
408
423
  - spec/support/helpers/model_helper.rb
409
424
  - spec/support/helpers/request_spec_helper.rb
410
425
  - spec/support/helpers/url_helper.rb
411
- - spec/support/http_method_shim.rb
412
426
  - spec/support/orm/active_record.rb
413
427
  - spec/support/orm/sequel.rb
414
428
  - spec/support/shared/controllers_shared_context.rb
429
+ - spec/support/shared/hashing_shared_context.rb
415
430
  - spec/support/shared/models_shared_examples.rb
416
- - spec/validators/redirect_uri_validator_spec.rb
417
- - spec/version/version_spec.rb
418
431
  homepage: http://github.com/nbulaj/doorkeeper-sequel
419
432
  licenses:
420
433
  - MIT
@@ -435,191 +448,168 @@ required_rubygems_version: !ruby/object:Gem::Requirement
435
448
  - !ruby/object:Gem::Version
436
449
  version: '0'
437
450
  requirements: []
438
- rubyforge_project:
439
- rubygems_version: 2.6.11
451
+ rubygems_version: 3.1.2
440
452
  signing_key:
441
453
  specification_version: 4
442
454
  summary: Doorkeeper Sequel ORM
443
455
  test_files:
444
- - spec/version/version_spec.rb
445
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/admin.html.erb
446
- - spec/generators/tmp/dummy/app/views/layouts/doorkeeper/application.html.erb
447
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/index.html.erb
448
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorized_applications/_delete_form.html.erb
449
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/show.html.erb
450
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/new.html.erb
451
- - spec/generators/tmp/dummy/app/views/doorkeeper/authorizations/error.html.erb
452
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/show.html.erb
453
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/new.html.erb
454
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/index.html.erb
455
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/edit.html.erb
456
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_delete_form.html.erb
457
- - spec/generators/tmp/dummy/app/views/doorkeeper/applications/_form.html.erb
458
- - spec/generators/templates/routes.rb
459
- - spec/support/http_method_shim.rb
460
- - spec/support/shared/models_shared_examples.rb
461
- - spec/support/shared/controllers_shared_context.rb
462
- - spec/support/orm/sequel.rb
463
- - spec/support/orm/active_record.rb
464
- - spec/support/helpers/url_helper.rb
465
- - spec/support/helpers/model_helper.rb
466
- - spec/support/helpers/config_helper.rb
467
- - spec/support/helpers/request_spec_helper.rb
468
- - spec/support/helpers/access_token_request_helper.rb
469
- - spec/support/helpers/authorization_request_helper.rb
470
- - spec/support/dependencies/factory_girl.rb
471
- - spec/stubs/generators/tmp/dummy/db/migrate/20170810125729_add_previous_refresh_token_to_access_tokens.rb
472
- - spec/stubs/support/sequel.rb
473
- - spec/stubs/models/user.rb
456
+ - spec/routing/default_routes_spec.rb
457
+ - spec/routing/custom_controller_routes_spec.rb
458
+ - spec/routing/scoped_routes_spec.rb
459
+ - spec/lib/oauth/code_response_spec.rb
460
+ - spec/lib/oauth/token_spec.rb
461
+ - spec/lib/oauth/code_request_spec.rb
462
+ - spec/lib/oauth/refresh_token_request_spec.rb
463
+ - spec/lib/oauth/pre_authorization_spec.rb
464
+ - spec/lib/oauth/base_response_spec.rb
465
+ - spec/lib/oauth/base_request_spec.rb
466
+ - spec/lib/oauth/authorization_code_request_spec.rb
467
+ - spec/lib/oauth/error_response_spec.rb
468
+ - spec/lib/oauth/token_request_spec.rb
469
+ - spec/lib/oauth/helpers/unique_token_spec.rb
470
+ - spec/lib/oauth/helpers/uri_checker_spec.rb
471
+ - spec/lib/oauth/helpers/scope_checker_spec.rb
472
+ - spec/lib/oauth/invalid_request_response_spec.rb
473
+ - spec/lib/oauth/authorization/uri_builder_spec.rb
474
+ - spec/lib/oauth/client_credentials/validation_spec.rb
475
+ - spec/lib/oauth/client_credentials/issuer_spec.rb
476
+ - spec/lib/oauth/client_credentials/creator_spec.rb
477
+ - spec/lib/oauth/error_spec.rb
478
+ - spec/lib/oauth/scopes_spec.rb
479
+ - spec/lib/oauth/client_credentials_integration_spec.rb
480
+ - spec/lib/oauth/client_credentials_request_spec.rb
481
+ - spec/lib/oauth/password_access_token_request_spec.rb
482
+ - spec/lib/oauth/invalid_token_response_spec.rb
483
+ - spec/lib/oauth/forbidden_token_response_spec.rb
484
+ - spec/lib/oauth/client/credentials_spec.rb
485
+ - spec/lib/oauth/token_response_spec.rb
486
+ - spec/lib/oauth/client_spec.rb
487
+ - spec/lib/secret_storing/base_spec.rb
488
+ - spec/lib/secret_storing/bcrypt_spec.rb
489
+ - spec/lib/secret_storing/plain_spec.rb
490
+ - spec/lib/secret_storing/sha256_hash_spec.rb
491
+ - spec/lib/config_spec.rb
492
+ - spec/lib/models/secret_storable_spec.rb
493
+ - spec/lib/models/revocable_spec.rb
494
+ - spec/lib/models/expirable_spec.rb
495
+ - spec/lib/models/scopes_spec.rb
496
+ - spec/lib/models/reusable_spec.rb
497
+ - spec/lib/doorkeeper_spec.rb
498
+ - spec/lib/option_spec.rb
499
+ - spec/lib/request/strategy_spec.rb
500
+ - spec/spec_helper_integration.rb
474
501
  - spec/stubs/spec_helper_integration.rb
475
- - spec/stubs/config/application.rb
502
+ - spec/stubs/models/user.rb
503
+ - spec/stubs/support/sequel.rb
476
504
  - spec/stubs/config/initializers/db.rb
477
- - spec/factories.rb
478
- - spec/models/doorkeeper/access_token_spec.rb
505
+ - spec/stubs/config/application.rb
506
+ - spec/stubs/generators/tmp/dummy/db/migrate/20170810125729_add_previous_refresh_token_to_access_tokens.rb
507
+ - spec/helpers/doorkeeper/dashboard_helper_spec.rb
508
+ - spec/controllers/tokens_controller_spec.rb
509
+ - spec/controllers/protected_resources_controller_spec.rb
510
+ - spec/controllers/applications_controller_spec.rb
511
+ - spec/controllers/token_info_controller_spec.rb
512
+ - spec/controllers/authorizations_controller_spec.rb
513
+ - spec/controllers/application_metal_controller_spec.rb
479
514
  - spec/models/doorkeeper/application_spec.rb
480
515
  - spec/models/doorkeeper/access_grant_spec.rb
481
- - spec/spec_helper_integration.rb
482
- - spec/validators/redirect_uri_validator_spec.rb
516
+ - spec/models/doorkeeper/access_token_spec.rb
517
+ - spec/dummy/config.ru
518
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/oT/oT-tmj280GM69WvFzFFtSU13HUmV36eH2eEY6_m1W7U.cache
519
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/G1/G1GKC-5u-vqWnfAXkvksyvM-yevzmePm9hx9Lykj9lQ.cache
520
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/4a/4aYsN8bQ4X6HM5LSe9uhXuRmZFvBQvZ3OYwE-IxqjAg.cache
521
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/O8/O8ITu_6f7X4Rdw8wBVCtlJJHEsU-y6r4k1U9myVEfTw.cache
522
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/o5/o52ldSMhS9LYBft-F3OdEDS6WzOLSsKTbtusg0qkHw8.cache
523
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5M/5MUJtZRAgpWm8loyfCLdqteqe3WQMXyKKWFLpQDYBJM.cache
524
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ni/Ni8PM9QgIMyZ8BGJ9RRejFYAZnbkvrkEx5VKEErQ3pk.cache
525
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/bt/btIEur6IN4ZCEDFSTcMLU6f4gnk8dl6kSTRaUw7yXkU.cache
526
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/uB/uBU0Nlzpazdv1GoFSRKCGGpEz0TlNLFyuFOn6r7_4sc.cache
527
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wa/WalwFtSvf5otEGKuJ4QSYuFg8pwUQVbaePw8g0sFEpA.cache
528
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/2q/2q4gLQK8jidypAwG-d22Hk7su9YThdEOX1w_AZbZgdg.cache
529
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/5U/5UFt8qjOIl6l7GXzikZkCXGFdQG1wV8jgPh3fJmANRQ.cache
530
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/52/52T5jdrkRnKRgAsV-kr-iT_zmDufy_-Z5UwIRMPM8Hg.cache
531
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/oO/oOuY0_fIleYiJ8S2naModAL1LBq7u7a848AG9EGR8pE.cache
532
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/hw/hwQsncHu-O8FiqzG3NSCPN7NSNDjf3OxnVxAzYtegAE.cache
533
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/qF/qFo4sQupgDwn-ReTfZwddZndB2JVane88QDgF6PcUB4.cache
534
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/IS/ISEfjWVN6HMIcVvPBRfoSNgwZedPwBdD6J5x2fSB_mg.cache
535
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/MT/MTdZBIfUXALTRT2B3O_9TNoqib-Vv4EBBTk5V0tsQ9I.cache
536
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/jY/jYRDqnJnnWHP71AsrDHTqfy_Sdrg43Hg1eZ6h9L_MWg.cache
537
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/cI/cI6qjXh3RS7pbjfAImh4M4xKShIc5ql-5pAPvphhNCM.cache
538
+ - spec/dummy/tmp/cache/assets/sprockets/v3.0/Gk/GkouEZBXxnQma8BwPZl_RJgVrwtSJvX1783CQ14Uow0.cache
539
+ - spec/dummy/log/test.log
540
+ - spec/dummy/config/environment.rb
541
+ - spec/dummy/config/boot.rb
542
+ - spec/dummy/config/database.yml
543
+ - spec/dummy/config/initializers/secret_token.rb
544
+ - spec/dummy/config/initializers/backtrace_silencers.rb
545
+ - spec/dummy/config/initializers/session_store.rb
546
+ - spec/dummy/config/initializers/wrap_parameters.rb
547
+ - spec/dummy/config/initializers/doorkeeper.rb
548
+ - spec/dummy/config/initializers/db.rb
549
+ - spec/dummy/config/environments/development.rb
550
+ - spec/dummy/config/environments/test.rb
551
+ - spec/dummy/config/environments/production.rb
552
+ - spec/dummy/config/application.rb
553
+ - spec/dummy/config/locales/doorkeeper.en.yml
554
+ - spec/dummy/config/routes.rb
555
+ - spec/dummy/Rakefile
556
+ - spec/dummy/script/rails
483
557
  - spec/dummy/public/422.html
484
558
  - spec/dummy/public/favicon.ico
485
559
  - spec/dummy/public/404.html
486
560
  - spec/dummy/public/500.html
487
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jg/JgpBOeANnJqUX61iOsyq9gnH5CdODzg18IvAQYJC_PE.cache
488
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/4Q/4QEkO7sOQsz2KI7mJWxhmltotR8iDKMhV-8Gui8l1Yo.cache
489
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/BA/BAC3ZaGoeZ9Od-kKg-UQYelvRgsCa0H72-52nLdcTNw.cache
490
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/hk/hk2YB6skvc72qL4IzzQKU8Emyfe5vARjoD1bvQTw4zE.cache
491
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/hU/hUU3IwUkZwk7JZj3LvnwlHPmwPh0Dz9B2Fv0aj17VJw.cache
492
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/K-/K-zIshtjhzfsKunHgtf4oRnTZuW_C9lUh_vP8EuydZY.cache
493
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/T3/T3h82qJsdqVlH178VSlblhU1evf9RZq83rqKMwjdRKI.cache
494
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Rw/RwtI_j7fJhgLfhnUQlGxoS-oFn2XExsMONzyxeaNhQ0.cache
495
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ta/TaYxNn81MhqC3DnMC6_y_Q7xap5Ntn4ggFo94EUaiak.cache
496
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yf/YfJJZvm_NONHd4eCasDibCcRapZ_WYIO5MUxSUUbYFk.cache
497
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/3P/3PoguHEOEeItUjmwC74MWLLP-_Ijow7798bF5U6K2dw.cache
498
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Jq/JqTLVvnY2AgGkHftWPwqt_HkbwhYRsmgHxk37VqKJAY.cache
499
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wq/WqbLVKOcTMZtttygYt_ncr1mGIDrzevSTaPGNmzV1D8.cache
500
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/wC/wCg1fNgvPgN-FNalk0y-pOrMrUUVpjjG_3jLzh3J29I.cache
501
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/lx/lxLzW5UwcFlFj1MV5uZ_icpe7sCVc6_WUMMLMqUqbzQ.cache
502
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/YF/YF60qiQ28QMoYDrLmrbHWZr7X7bl5MxVPR5QrrVCFak.cache
503
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/vO/vOXN0mER62j4JiPpMTSVS7MMqs0067cZx14vD5B8qiQ.cache
504
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/fX/fXlPiyPj8HG3QoJDYpup0DTLBnq8hw6Np2VeMHWKuaQ.cache
505
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/LF/LF3zCtek7hbLgoNRiXnEYsN9BkXVGw5dqB2W-pALTcU.cache
506
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/f8/f8WT8jqR1qNIdQaRDpXbyLN7E5AWkbYFBwdh9Ozk7gk.cache
507
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Yi/YigT9tpj4dQzAx0EBR0E5d3g7wtv9X1Qw7eprYkoeNE.cache
508
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/6k/6kyl2zElqd6QNgJLE7Ej-F9Xofwmq0OiAIJTHGtoCt8.cache
509
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/6b/6b0anrSo7Fvoc05t4Ca0zZmfS_cpERy1DsG3ea6lBOg.cache
510
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qS/qSc-air8Wm-UxxbdyXgOBiwA1g2VgejS3oE4CTPnUJs.cache
511
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ht/HtCMc1ZaTgZy2o1DFs1PbbISOEzOsyW0aFFkquK8ywY.cache
512
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Hc/HcIx4yYPg3w0vv-Cj49orJw9fudDS4Qpe3WXtuej7MI.cache
513
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Z0/Z0e47cT2a-21U-w-3gkbgqC3o5jWnEzOB8vW06aJH1E.cache
514
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/ii/iiJRBZIsxKiwyzU_Z7UtQeUTXMRJRPTreTKRvAWO7_8.cache
515
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/0p/0pa3wNbGHqFC6gxrMvdOJiP6gPwFv9VJ_npjEfRWxAE.cache
516
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/QX/QXcp8DweOJ6BfMedGMfeHvVXv2hjDIleln1LSJk7vOE.cache
517
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Wn/WnJTlULZ65547f83Wc-LjLXHGBPvOi_0ItAaE_6SlzY.cache
518
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Bw/Bw6Nimjvy5Yv1AYbZb1t-v0eMNhv-bhwBzR-b5mY7FU.cache
519
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Fq/FqQWjMAz8yjZQlMC_dUsztaOxGruI2IXyGAAUF9SvQ0.cache
520
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/0x/0x7itSE_jjN9NM8w3jE4isMgaQPBrVx0prZCwBURBV0.cache
521
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/9D/9DkYxrjE-y5KTPxxIo5Zs3AOaylSDDJPPWbghYbc6tA.cache
522
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/g5/g5VAxZ-YK0jKJukhexFCoUQqI2yLS1eOYNbU__THPvo.cache
523
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/J_/J_D9clwKidN28hnVB1O3zEfKDwg90Usdb5ToKiPq_aw.cache
524
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/dL/dL7SLUWUIeVdyA1UuH-rvif0nzesOar3LdEtqzdb4bE.cache
525
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/f1/f11L16ip-n_en5vxM7LnyFPv_A9VDsPUKXzg-hDG0dE.cache
526
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/4_/4_AVHXD_fQP3S2gUiYF1Azv90b6luuMnAM0hxD901y0.cache
527
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/Ji/JitNKkP1dYdu9ObSdIkkEAsiFxEmRO5oy1UIyhT_hYs.cache
528
- - spec/dummy/tmp/cache/assets/sprockets/v3.0/qo/qo6SpT75QykYB63Aqq5bgzpXyNU1Y4dGFvCCJgoWQpE.cache
529
561
  - spec/dummy/app/views/home/index.html.erb
530
562
  - spec/dummy/app/views/layouts/application.html.erb
531
- - spec/dummy/app/models/user.rb
532
563
  - spec/dummy/app/helpers/application_helper.rb
533
564
  - spec/dummy/app/controllers/metal_controller.rb
534
565
  - spec/dummy/app/controllers/full_protected_resources_controller.rb
566
+ - spec/dummy/app/controllers/application_controller.rb
535
567
  - spec/dummy/app/controllers/home_controller.rb
536
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
537
568
  - spec/dummy/app/controllers/semi_protected_resources_controller.rb
538
- - spec/dummy/app/controllers/application_controller.rb
539
- - spec/dummy/Rakefile
540
- - spec/dummy/config.ru
541
- - spec/dummy/script/rails
569
+ - spec/dummy/app/controllers/custom_authorizations_controller.rb
570
+ - spec/dummy/app/assets/config/manifest.js
571
+ - spec/dummy/app/models/user.rb
542
572
  - spec/dummy/db/schema.rb
543
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
544
- - spec/dummy/db/migrate/20111122132257_create_users.rb
545
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_application.rb
546
573
  - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
547
574
  - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
575
+ - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
548
576
  - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
549
- - spec/dummy/config/environment.rb
550
- - spec/dummy/config/application.rb
551
- - spec/dummy/config/environments/test.rb
552
- - spec/dummy/config/environments/development.rb
553
- - spec/dummy/config/environments/production.rb
554
- - spec/dummy/config/database.yml
555
- - spec/dummy/config/routes.rb
556
- - spec/dummy/config/locales/doorkeeper.en.yml
557
- - spec/dummy/config/boot.rb
558
- - spec/dummy/config/initializers/backtrace_silencers.rb
559
- - spec/dummy/config/initializers/doorkeeper.rb
560
- - spec/dummy/config/initializers/session_store.rb
561
- - spec/dummy/config/initializers/wrap_parameters.rb
562
- - spec/dummy/config/initializers/secret_token.rb
563
- - spec/dummy/config/initializers/db.rb
564
- - spec/dummy/log/test.log
565
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
566
- - spec/routing/default_routes_spec.rb
567
- - spec/routing/scoped_routes_spec.rb
568
- - spec/routing/custom_controller_routes_spec.rb
577
+ - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
578
+ - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
579
+ - spec/dummy/db/migrate/20111122132257_create_users.rb
580
+ - spec/support/orm/active_record.rb
581
+ - spec/support/orm/sequel.rb
582
+ - spec/support/dependencies/factory_bot.rb
583
+ - spec/support/doorkeeper_rspec.rb
584
+ - spec/support/helpers/config_helper.rb
585
+ - spec/support/helpers/authorization_request_helper.rb
586
+ - spec/support/helpers/model_helper.rb
587
+ - spec/support/helpers/access_token_request_helper.rb
588
+ - spec/support/helpers/request_spec_helper.rb
589
+ - spec/support/helpers/url_helper.rb
590
+ - spec/support/shared/models_shared_examples.rb
591
+ - spec/support/shared/hashing_shared_context.rb
592
+ - spec/support/shared/controllers_shared_context.rb
593
+ - spec/doorkeeper/server_spec.rb
594
+ - spec/doorkeeper/stale_records_cleaner_spec.rb
595
+ - spec/doorkeeper/version_spec.rb
596
+ - spec/doorkeeper/redirect_uri_validator_spec.rb
597
+ - spec/generators/templates/routes.rb
598
+ - spec/factories.rb
599
+ - spec/spec_helper.rb
600
+ - spec/requests/flows/password_spec.rb
569
601
  - spec/requests/flows/authorization_code_errors_spec.rb
602
+ - spec/requests/flows/authorization_code_spec.rb
570
603
  - spec/requests/flows/skip_authorization_spec.rb
604
+ - spec/requests/flows/implicit_grant_errors_spec.rb
571
605
  - spec/requests/flows/client_credentials_spec.rb
572
- - spec/requests/flows/authorization_code_spec.rb
573
- - spec/requests/flows/password_spec.rb
606
+ - spec/requests/flows/refresh_token_spec.rb
574
607
  - spec/requests/flows/revoke_token_spec.rb
575
608
  - spec/requests/flows/implicit_grant_spec.rb
576
- - spec/requests/flows/implicit_grant_errors_spec.rb
577
- - spec/requests/flows/refresh_token_spec.rb
578
609
  - spec/requests/protected_resources/metal_spec.rb
579
610
  - spec/requests/protected_resources/private_api_spec.rb
580
- - spec/requests/applications/applications_request_spec.rb
581
611
  - spec/requests/applications/authorized_applications_spec.rb
612
+ - spec/requests/applications/applications_request_spec.rb
582
613
  - spec/requests/endpoints/token_spec.rb
583
614
  - spec/requests/endpoints/authorization_spec.rb
584
- - spec/lib/request/strategy_spec.rb
585
- - spec/lib/models/expirable_spec.rb
586
- - spec/lib/models/scopes_spec.rb
587
- - spec/lib/models/revocable_spec.rb
588
- - spec/lib/server_spec.rb
589
- - spec/lib/doorkeeper_spec.rb
590
- - spec/lib/config_spec.rb
591
- - spec/lib/oauth/code_response_spec.rb
592
- - spec/lib/oauth/scopes_spec.rb
593
- - spec/lib/oauth/authorization/uri_builder_spec.rb
594
- - spec/lib/oauth/token_spec.rb
595
- - spec/lib/oauth/client_credentials_request_spec.rb
596
- - spec/lib/oauth/forbidden_token_response_spec.rb
597
- - spec/lib/oauth/error_response_spec.rb
598
- - spec/lib/oauth/client/credentials_spec.rb
599
- - spec/lib/oauth/client_spec.rb
600
- - spec/lib/oauth/client_credentials/issuer_spec.rb
601
- - spec/lib/oauth/client_credentials/creator_spec.rb
602
- - spec/lib/oauth/client_credentials/validation_spec.rb
603
- - spec/lib/oauth/token_response_spec.rb
604
- - spec/lib/oauth/invalid_token_response_spec.rb
605
- - spec/lib/oauth/base_response_spec.rb
606
- - spec/lib/oauth/error_spec.rb
607
- - spec/lib/oauth/helpers/unique_token_spec.rb
608
- - spec/lib/oauth/helpers/uri_checker_spec.rb
609
- - spec/lib/oauth/helpers/scope_checker_spec.rb
610
- - spec/lib/oauth/client_credentials_integration_spec.rb
611
- - spec/lib/oauth/authorization_code_request_spec.rb
612
- - spec/lib/oauth/pre_authorization_spec.rb
613
- - spec/lib/oauth/password_access_token_request_spec.rb
614
- - spec/lib/oauth/code_request_spec.rb
615
- - spec/lib/oauth/base_request_spec.rb
616
- - spec/lib/oauth/refresh_token_request_spec.rb
617
- - spec/lib/oauth/token_request_spec.rb
618
- - spec/controllers/applications_controller_spec.rb
619
- - spec/controllers/tokens_controller_spec.rb
620
- - spec/controllers/authorizations_controller_spec.rb
621
- - spec/controllers/protected_resources_controller_spec.rb
622
- - spec/controllers/token_info_controller_spec.rb
623
- - spec/controllers/application_metal_controller.rb
624
- - spec/spec_helper.rb
625
615
  - spec/grape/grape_integration_spec.rb