doorkeeper 5.4.0.rc1 → 5.4.0.rc2

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 (181) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +28 -1
  3. data/app/controllers/doorkeeper/applications_controller.rb +3 -3
  4. data/app/controllers/doorkeeper/authorized_applications_controller.rb +1 -1
  5. data/app/views/doorkeeper/applications/_form.html.erb +1 -1
  6. data/lib/doorkeeper.rb +1 -1
  7. data/lib/doorkeeper/config.rb +24 -18
  8. data/lib/doorkeeper/config/abstract_builder.rb +1 -1
  9. data/lib/doorkeeper/helpers/controller.rb +4 -4
  10. data/lib/doorkeeper/models/access_grant_mixin.rb +11 -5
  11. data/lib/doorkeeper/models/access_token_mixin.rb +9 -5
  12. data/lib/doorkeeper/models/application_mixin.rb +5 -4
  13. data/lib/doorkeeper/oauth/client_credentials/creator.rb +2 -2
  14. data/lib/doorkeeper/oauth/client_credentials/validator.rb +3 -1
  15. data/lib/doorkeeper/oauth/password_access_token_request.rb +1 -1
  16. data/lib/doorkeeper/oauth/pre_authorization.rb +5 -4
  17. data/lib/doorkeeper/oauth/token.rb +1 -2
  18. data/lib/doorkeeper/orm/active_record.rb +10 -2
  19. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +1 -1
  20. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +1 -1
  21. data/lib/doorkeeper/orm/active_record/mixins/application.rb +64 -9
  22. data/lib/doorkeeper/request/refresh_token.rb +2 -1
  23. data/lib/doorkeeper/version.rb +1 -1
  24. data/lib/generators/doorkeeper/templates/migration.rb.erb +12 -5
  25. metadata +5 -299
  26. data/Appraisals +0 -26
  27. data/CODE_OF_CONDUCT.md +0 -46
  28. data/CONTRIBUTING.md +0 -49
  29. data/Dangerfile +0 -67
  30. data/Dockerfile +0 -29
  31. data/Gemfile +0 -25
  32. data/NEWS.md +0 -1
  33. data/RELEASING.md +0 -11
  34. data/Rakefile +0 -28
  35. data/SECURITY.md +0 -15
  36. data/UPGRADE.md +0 -2
  37. data/bin/console +0 -30
  38. data/doorkeeper.gemspec +0 -42
  39. data/gemfiles/rails_5_0.gemfile +0 -19
  40. data/gemfiles/rails_5_1.gemfile +0 -19
  41. data/gemfiles/rails_5_2.gemfile +0 -19
  42. data/gemfiles/rails_6_0.gemfile +0 -19
  43. data/gemfiles/rails_master.gemfile +0 -19
  44. data/spec/controllers/application_metal_controller_spec.rb +0 -64
  45. data/spec/controllers/applications_controller_spec.rb +0 -274
  46. data/spec/controllers/authorizations_controller_spec.rb +0 -743
  47. data/spec/controllers/protected_resources_controller_spec.rb +0 -361
  48. data/spec/controllers/token_info_controller_spec.rb +0 -50
  49. data/spec/controllers/tokens_controller_spec.rb +0 -499
  50. data/spec/dummy/Rakefile +0 -9
  51. data/spec/dummy/app/assets/config/manifest.js +0 -2
  52. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  53. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -9
  54. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -14
  55. data/spec/dummy/app/controllers/home_controller.rb +0 -18
  56. data/spec/dummy/app/controllers/metal_controller.rb +0 -13
  57. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -13
  58. data/spec/dummy/app/helpers/application_helper.rb +0 -7
  59. data/spec/dummy/app/models/user.rb +0 -11
  60. data/spec/dummy/app/views/home/index.html.erb +0 -0
  61. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  62. data/spec/dummy/config.ru +0 -6
  63. data/spec/dummy/config/application.rb +0 -51
  64. data/spec/dummy/config/boot.rb +0 -7
  65. data/spec/dummy/config/database.yml +0 -15
  66. data/spec/dummy/config/environment.rb +0 -5
  67. data/spec/dummy/config/environments/development.rb +0 -31
  68. data/spec/dummy/config/environments/production.rb +0 -64
  69. data/spec/dummy/config/environments/test.rb +0 -45
  70. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
  71. data/spec/dummy/config/initializers/doorkeeper.rb +0 -166
  72. data/spec/dummy/config/initializers/secret_token.rb +0 -10
  73. data/spec/dummy/config/initializers/session_store.rb +0 -10
  74. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -16
  75. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  76. data/spec/dummy/config/routes.rb +0 -13
  77. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -11
  78. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -7
  79. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -69
  80. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -9
  81. data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -13
  82. data/spec/dummy/db/migrate/20170822064514_enable_pkce.rb +0 -8
  83. data/spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb +0 -13
  84. data/spec/dummy/db/schema.rb +0 -70
  85. data/spec/dummy/public/404.html +0 -26
  86. data/spec/dummy/public/422.html +0 -26
  87. data/spec/dummy/public/500.html +0 -26
  88. data/spec/dummy/public/favicon.ico +0 -0
  89. data/spec/dummy/script/rails +0 -9
  90. data/spec/factories.rb +0 -30
  91. data/spec/generators/application_owner_generator_spec.rb +0 -28
  92. data/spec/generators/confidential_applications_generator_spec.rb +0 -29
  93. data/spec/generators/enable_polymorphic_resource_owner_generator_spec.rb +0 -47
  94. data/spec/generators/install_generator_spec.rb +0 -36
  95. data/spec/generators/migration_generator_spec.rb +0 -28
  96. data/spec/generators/pkce_generator_spec.rb +0 -28
  97. data/spec/generators/previous_refresh_token_generator_spec.rb +0 -44
  98. data/spec/generators/templates/routes.rb +0 -4
  99. data/spec/generators/views_generator_spec.rb +0 -29
  100. data/spec/grape/grape_integration_spec.rb +0 -137
  101. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -26
  102. data/spec/lib/config_spec.rb +0 -813
  103. data/spec/lib/doorkeeper_spec.rb +0 -27
  104. data/spec/lib/models/expirable_spec.rb +0 -61
  105. data/spec/lib/models/reusable_spec.rb +0 -40
  106. data/spec/lib/models/revocable_spec.rb +0 -58
  107. data/spec/lib/models/scopes_spec.rb +0 -61
  108. data/spec/lib/models/secret_storable_spec.rb +0 -135
  109. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -39
  110. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -180
  111. data/spec/lib/oauth/base_request_spec.rb +0 -210
  112. data/spec/lib/oauth/base_response_spec.rb +0 -45
  113. data/spec/lib/oauth/client/credentials_spec.rb +0 -90
  114. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -135
  115. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -110
  116. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -57
  117. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
  118. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -108
  119. data/spec/lib/oauth/client_spec.rb +0 -38
  120. data/spec/lib/oauth/code_request_spec.rb +0 -46
  121. data/spec/lib/oauth/code_response_spec.rb +0 -36
  122. data/spec/lib/oauth/error_response_spec.rb +0 -64
  123. data/spec/lib/oauth/error_spec.rb +0 -21
  124. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -20
  125. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -110
  126. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -21
  127. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -262
  128. data/spec/lib/oauth/invalid_request_response_spec.rb +0 -73
  129. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -53
  130. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -201
  131. data/spec/lib/oauth/pre_authorization_spec.rb +0 -218
  132. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -166
  133. data/spec/lib/oauth/scopes_spec.rb +0 -146
  134. data/spec/lib/oauth/token_request_spec.rb +0 -164
  135. data/spec/lib/oauth/token_response_spec.rb +0 -84
  136. data/spec/lib/oauth/token_spec.rb +0 -156
  137. data/spec/lib/option_spec.rb +0 -51
  138. data/spec/lib/request/strategy_spec.rb +0 -54
  139. data/spec/lib/secret_storing/base_spec.rb +0 -60
  140. data/spec/lib/secret_storing/bcrypt_spec.rb +0 -49
  141. data/spec/lib/secret_storing/plain_spec.rb +0 -44
  142. data/spec/lib/secret_storing/sha256_hash_spec.rb +0 -48
  143. data/spec/lib/server_spec.rb +0 -49
  144. data/spec/lib/stale_records_cleaner_spec.rb +0 -102
  145. data/spec/models/doorkeeper/access_grant_spec.rb +0 -175
  146. data/spec/models/doorkeeper/access_token_spec.rb +0 -650
  147. data/spec/models/doorkeeper/application_spec.rb +0 -442
  148. data/spec/requests/applications/applications_request_spec.rb +0 -259
  149. data/spec/requests/applications/authorized_applications_spec.rb +0 -32
  150. data/spec/requests/endpoints/authorization_spec.rb +0 -91
  151. data/spec/requests/endpoints/token_spec.rb +0 -79
  152. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -82
  153. data/spec/requests/flows/authorization_code_spec.rb +0 -530
  154. data/spec/requests/flows/client_credentials_spec.rb +0 -207
  155. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -46
  156. data/spec/requests/flows/implicit_grant_spec.rb +0 -91
  157. data/spec/requests/flows/password_spec.rb +0 -316
  158. data/spec/requests/flows/refresh_token_spec.rb +0 -241
  159. data/spec/requests/flows/revoke_token_spec.rb +0 -196
  160. data/spec/requests/flows/skip_authorization_spec.rb +0 -66
  161. data/spec/requests/protected_resources/metal_spec.rb +0 -16
  162. data/spec/requests/protected_resources/private_api_spec.rb +0 -83
  163. data/spec/routing/custom_controller_routes_spec.rb +0 -133
  164. data/spec/routing/default_routes_spec.rb +0 -41
  165. data/spec/routing/scoped_routes_spec.rb +0 -47
  166. data/spec/spec_helper.rb +0 -54
  167. data/spec/spec_helper_integration.rb +0 -4
  168. data/spec/support/dependencies/factory_bot.rb +0 -4
  169. data/spec/support/doorkeeper_rspec.rb +0 -22
  170. data/spec/support/helpers/access_token_request_helper.rb +0 -14
  171. data/spec/support/helpers/authorization_request_helper.rb +0 -43
  172. data/spec/support/helpers/config_helper.rb +0 -11
  173. data/spec/support/helpers/model_helper.rb +0 -78
  174. data/spec/support/helpers/request_spec_helper.rb +0 -110
  175. data/spec/support/helpers/url_helper.rb +0 -62
  176. data/spec/support/orm/active_record.rb +0 -5
  177. data/spec/support/shared/controllers_shared_context.rb +0 -133
  178. data/spec/support/shared/hashing_shared_context.rb +0 -36
  179. data/spec/support/shared/models_shared_examples.rb +0 -56
  180. data/spec/validators/redirect_uri_validator_spec.rb +0 -183
  181. data/spec/version/version_spec.rb +0 -17
@@ -9,7 +9,7 @@ module Doorkeeper::Orm::ActiveRecord::Mixins
9
9
 
10
10
  include ::Doorkeeper::AccessGrantMixin
11
11
 
12
- belongs_to :application, class_name: Doorkeeper.config.application_class,
12
+ belongs_to :application, class_name: Doorkeeper.config.application_class.to_s,
13
13
  optional: true,
14
14
  inverse_of: :access_grants
15
15
 
@@ -9,7 +9,7 @@ module Doorkeeper::Orm::ActiveRecord::Mixins
9
9
 
10
10
  include ::Doorkeeper::AccessTokenMixin
11
11
 
12
- belongs_to :application, class_name: Doorkeeper.config.application_class,
12
+ belongs_to :application, class_name: Doorkeeper.config.application_class.to_s,
13
13
  inverse_of: :access_tokens,
14
14
  optional: true
15
15
 
@@ -12,12 +12,12 @@ module Doorkeeper::Orm::ActiveRecord::Mixins
12
12
  has_many :access_grants,
13
13
  foreign_key: :application_id,
14
14
  dependent: :delete_all,
15
- class_name: Doorkeeper.config.access_grant_class
15
+ class_name: Doorkeeper.config.access_grant_class.to_s
16
16
 
17
17
  has_many :access_tokens,
18
18
  foreign_key: :application_id,
19
19
  dependent: :delete_all,
20
- class_name: Doorkeeper.config.access_token_class
20
+ class_name: Doorkeeper.config.access_token_class.to_s
21
21
 
22
22
  validates :name, :secret, :uid, presence: true
23
23
  validates :uid, uniqueness: { case_sensitive: true }
@@ -31,7 +31,7 @@ module Doorkeeper::Orm::ActiveRecord::Mixins
31
31
  has_many :authorized_tokens,
32
32
  -> { where(revoked_at: nil) },
33
33
  foreign_key: :application_id,
34
- class_name: Doorkeeper.config.access_token_class
34
+ class_name: Doorkeeper.config.access_token_class.to_s
35
35
 
36
36
  has_many :authorized_applications,
37
37
  through: :authorized_tokens,
@@ -61,15 +61,27 @@ module Doorkeeper::Orm::ActiveRecord::Mixins
61
61
  end
62
62
  end
63
63
 
64
- # This is the right way how we want to override ActiveRecord #to_json
64
+ # Represents client as set of it's attributes in JSON format.
65
+ # This is the right way how we want to override ActiveRecord #to_json.
65
66
  #
66
- # @return [String] entity attributes as JSON
67
+ # Respects privacy settings and serializes minimum set of attributes
68
+ # for public/private clients and full set for authorized owners.
69
+ #
70
+ # @return [Hash] entity attributes for JSON
67
71
  #
68
72
  def as_json(options = {})
69
- hash = super
70
-
71
- hash["secret"] = plaintext_secret if hash.key?("secret")
72
- hash
73
+ # if application belongs to some owner we need to check if it's the same as
74
+ # the one passed in the options or check if we render the client as an owner
75
+ if (respond_to?(:owner) && owner && owner == options[:current_resource_owner]) ||
76
+ options[:as_owner]
77
+ # Owners can see all the client attributes, fallback to ActiveModel serialization
78
+ super
79
+ else
80
+ # if application has no owner or it's owner doesn't match one from the options
81
+ # we render only minimum set of attributes that could be exposed to a public
82
+ only = extract_serializable_attributes(options)
83
+ super(options.merge(only: only))
84
+ end
73
85
  end
74
86
 
75
87
  def authorized_for_resource_owner?(resource_owner)
@@ -100,6 +112,49 @@ module Doorkeeper::Orm::ActiveRecord::Mixins
100
112
  def enforce_scopes?
101
113
  Doorkeeper.config.enforce_configured_scopes?
102
114
  end
115
+
116
+ # Helper method to extract collection of serializable attribute names
117
+ # considering serialization options (like `only`, `except` and so on).
118
+ #
119
+ # @param options [Hash] serialization options
120
+ #
121
+ # @return [Array<String>]
122
+ # collection of attributes to be serialized using #as_json
123
+ #
124
+ def extract_serializable_attributes(options = {})
125
+ opts = options.try(:dup) || {}
126
+ only = Array.wrap(opts[:only]).map(&:to_s)
127
+
128
+ only = if only.blank?
129
+ serializable_attributes
130
+ else
131
+ only & serializable_attributes
132
+ end
133
+
134
+ only -= Array.wrap(opts[:except]).map(&:to_s) if opts.key?(:except)
135
+ only.uniq
136
+ end
137
+
138
+ # We need to hook into this method to allow serializing plan-text secrets
139
+ # when secrets hashing enabled.
140
+ #
141
+ # @param key [String] attribute name
142
+ #
143
+ def read_attribute_for_serialization(key)
144
+ return super unless key.to_s == "secret"
145
+
146
+ plaintext_secret || secret
147
+ end
148
+
149
+ # Collection of attributes that could be serialized for public.
150
+ # Override this method if you need additional attributes to be serialized.
151
+ #
152
+ # @return [Array<String>] collection of serializable attributes
153
+ def serializable_attributes
154
+ attributes = %w[id name created_at]
155
+ attributes << "uid" unless confidential?
156
+ attributes
157
+ end
103
158
  end
104
159
 
105
160
  module ClassMethods
@@ -12,7 +12,8 @@ module Doorkeeper
12
12
  def request
13
13
  @request ||= OAuth::RefreshTokenRequest.new(
14
14
  Doorkeeper.config,
15
- refresh_token, credentials,
15
+ refresh_token,
16
+ credentials,
16
17
  parameters,
17
18
  )
18
19
  end
@@ -10,7 +10,7 @@ module Doorkeeper
10
10
  MAJOR = 5
11
11
  MINOR = 4
12
12
  TINY = 0
13
- PRE = "rc1"
13
+ PRE = "rc2"
14
14
 
15
15
  # Full version number
16
16
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
@@ -57,12 +57,19 @@ class CreateDoorkeeperTables < ActiveRecord::Migration<%= migration_version %>
57
57
  t.datetime :created_at, null: false
58
58
  t.string :scopes
59
59
 
60
- # If there is a previous_refresh_token column,
60
+ # The authorization server MAY issue a new refresh token, in which case
61
+ # *the client MUST discard the old refresh token* and replace it with the
62
+ # new refresh token. The authorization server MAY revoke the old
63
+ # refresh token after issuing a new refresh token to the client.
64
+ # @see https://tools.ietf.org/html/rfc6749#section-6
65
+ #
66
+ # Doorkeeper implementation: if there is a `previous_refresh_token` column,
61
67
  # refresh tokens will be revoked after a related access token is used.
62
- # If there is no previous_refresh_token column,
63
- # previous tokens are revoked as soon as a new access token is created.
64
- # Comment out this line if you'd rather have refresh tokens
65
- # instantly revoked.
68
+ # If there is no `previous_refresh_token` column, previous tokens are
69
+ # revoked as soon as a new access token is created.
70
+ #
71
+ # Comment out this line if you want refresh tokens to be instantly
72
+ # revoked after use.
66
73
  t.string :previous_refresh_token, null: false, default: ""
67
74
  end
68
75
 
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: 5.4.0.rc1
4
+ version: 5.4.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Elias Philipp
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2020-04-08 00:00:00.000000000 Z
14
+ date: 2020-05-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: railties
@@ -75,14 +75,14 @@ dependencies:
75
75
  requirements:
76
76
  - - "~>"
77
77
  - !ruby/object:Gem::Version
78
- version: '6.0'
78
+ version: '7.0'
79
79
  type: :development
80
80
  prerelease: false
81
81
  version_requirements: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - "~>"
84
84
  - !ruby/object:Gem::Version
85
- version: '6.0'
85
+ version: '7.0'
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: database_cleaner
88
88
  requirement: !ruby/object:Gem::Requirement
@@ -174,20 +174,9 @@ executables: []
174
174
  extensions: []
175
175
  extra_rdoc_files: []
176
176
  files:
177
- - Appraisals
178
177
  - CHANGELOG.md
179
- - CODE_OF_CONDUCT.md
180
- - CONTRIBUTING.md
181
- - Dangerfile
182
- - Dockerfile
183
- - Gemfile
184
178
  - MIT-LICENSE
185
- - NEWS.md
186
179
  - README.md
187
- - RELEASING.md
188
- - Rakefile
189
- - SECURITY.md
190
- - UPGRADE.md
191
180
  - app/assets/stylesheets/doorkeeper/admin/application.css
192
181
  - app/assets/stylesheets/doorkeeper/application.css
193
182
  - app/controllers/doorkeeper/application_controller.rb
@@ -211,14 +200,7 @@ files:
211
200
  - app/views/doorkeeper/authorized_applications/index.html.erb
212
201
  - app/views/layouts/doorkeeper/admin.html.erb
213
202
  - app/views/layouts/doorkeeper/application.html.erb
214
- - bin/console
215
203
  - config/locales/en.yml
216
- - doorkeeper.gemspec
217
- - gemfiles/rails_5_0.gemfile
218
- - gemfiles/rails_5_1.gemfile
219
- - gemfiles/rails_5_2.gemfile
220
- - gemfiles/rails_6_0.gemfile
221
- - gemfiles/rails_master.gemfile
222
204
  - lib/doorkeeper.rb
223
205
  - lib/doorkeeper/config.rb
224
206
  - lib/doorkeeper/config/abstract_builder.rb
@@ -324,144 +306,6 @@ files:
324
306
  - lib/generators/doorkeeper/templates/initializer.rb
325
307
  - lib/generators/doorkeeper/templates/migration.rb.erb
326
308
  - lib/generators/doorkeeper/views_generator.rb
327
- - spec/controllers/application_metal_controller_spec.rb
328
- - spec/controllers/applications_controller_spec.rb
329
- - spec/controllers/authorizations_controller_spec.rb
330
- - spec/controllers/protected_resources_controller_spec.rb
331
- - spec/controllers/token_info_controller_spec.rb
332
- - spec/controllers/tokens_controller_spec.rb
333
- - spec/dummy/Rakefile
334
- - spec/dummy/app/assets/config/manifest.js
335
- - spec/dummy/app/controllers/application_controller.rb
336
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
337
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
338
- - spec/dummy/app/controllers/home_controller.rb
339
- - spec/dummy/app/controllers/metal_controller.rb
340
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
341
- - spec/dummy/app/helpers/application_helper.rb
342
- - spec/dummy/app/models/user.rb
343
- - spec/dummy/app/views/home/index.html.erb
344
- - spec/dummy/app/views/layouts/application.html.erb
345
- - spec/dummy/config.ru
346
- - spec/dummy/config/application.rb
347
- - spec/dummy/config/boot.rb
348
- - spec/dummy/config/database.yml
349
- - spec/dummy/config/environment.rb
350
- - spec/dummy/config/environments/development.rb
351
- - spec/dummy/config/environments/production.rb
352
- - spec/dummy/config/environments/test.rb
353
- - spec/dummy/config/initializers/backtrace_silencers.rb
354
- - spec/dummy/config/initializers/doorkeeper.rb
355
- - spec/dummy/config/initializers/secret_token.rb
356
- - spec/dummy/config/initializers/session_store.rb
357
- - spec/dummy/config/initializers/wrap_parameters.rb
358
- - spec/dummy/config/locales/doorkeeper.en.yml
359
- - spec/dummy/config/routes.rb
360
- - spec/dummy/db/migrate/20111122132257_create_users.rb
361
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
362
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
363
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
364
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
365
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
366
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
367
- - spec/dummy/db/schema.rb
368
- - spec/dummy/public/404.html
369
- - spec/dummy/public/422.html
370
- - spec/dummy/public/500.html
371
- - spec/dummy/public/favicon.ico
372
- - spec/dummy/script/rails
373
- - spec/factories.rb
374
- - spec/generators/application_owner_generator_spec.rb
375
- - spec/generators/confidential_applications_generator_spec.rb
376
- - spec/generators/enable_polymorphic_resource_owner_generator_spec.rb
377
- - spec/generators/install_generator_spec.rb
378
- - spec/generators/migration_generator_spec.rb
379
- - spec/generators/pkce_generator_spec.rb
380
- - spec/generators/previous_refresh_token_generator_spec.rb
381
- - spec/generators/templates/routes.rb
382
- - spec/generators/views_generator_spec.rb
383
- - spec/grape/grape_integration_spec.rb
384
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
385
- - spec/lib/config_spec.rb
386
- - spec/lib/doorkeeper_spec.rb
387
- - spec/lib/models/expirable_spec.rb
388
- - spec/lib/models/reusable_spec.rb
389
- - spec/lib/models/revocable_spec.rb
390
- - spec/lib/models/scopes_spec.rb
391
- - spec/lib/models/secret_storable_spec.rb
392
- - spec/lib/oauth/authorization/uri_builder_spec.rb
393
- - spec/lib/oauth/authorization_code_request_spec.rb
394
- - spec/lib/oauth/base_request_spec.rb
395
- - spec/lib/oauth/base_response_spec.rb
396
- - spec/lib/oauth/client/credentials_spec.rb
397
- - spec/lib/oauth/client_credentials/creator_spec.rb
398
- - spec/lib/oauth/client_credentials/issuer_spec.rb
399
- - spec/lib/oauth/client_credentials/validation_spec.rb
400
- - spec/lib/oauth/client_credentials_integration_spec.rb
401
- - spec/lib/oauth/client_credentials_request_spec.rb
402
- - spec/lib/oauth/client_spec.rb
403
- - spec/lib/oauth/code_request_spec.rb
404
- - spec/lib/oauth/code_response_spec.rb
405
- - spec/lib/oauth/error_response_spec.rb
406
- - spec/lib/oauth/error_spec.rb
407
- - spec/lib/oauth/forbidden_token_response_spec.rb
408
- - spec/lib/oauth/helpers/scope_checker_spec.rb
409
- - spec/lib/oauth/helpers/unique_token_spec.rb
410
- - spec/lib/oauth/helpers/uri_checker_spec.rb
411
- - spec/lib/oauth/invalid_request_response_spec.rb
412
- - spec/lib/oauth/invalid_token_response_spec.rb
413
- - spec/lib/oauth/password_access_token_request_spec.rb
414
- - spec/lib/oauth/pre_authorization_spec.rb
415
- - spec/lib/oauth/refresh_token_request_spec.rb
416
- - spec/lib/oauth/scopes_spec.rb
417
- - spec/lib/oauth/token_request_spec.rb
418
- - spec/lib/oauth/token_response_spec.rb
419
- - spec/lib/oauth/token_spec.rb
420
- - spec/lib/option_spec.rb
421
- - spec/lib/request/strategy_spec.rb
422
- - spec/lib/secret_storing/base_spec.rb
423
- - spec/lib/secret_storing/bcrypt_spec.rb
424
- - spec/lib/secret_storing/plain_spec.rb
425
- - spec/lib/secret_storing/sha256_hash_spec.rb
426
- - spec/lib/server_spec.rb
427
- - spec/lib/stale_records_cleaner_spec.rb
428
- - spec/models/doorkeeper/access_grant_spec.rb
429
- - spec/models/doorkeeper/access_token_spec.rb
430
- - spec/models/doorkeeper/application_spec.rb
431
- - spec/requests/applications/applications_request_spec.rb
432
- - spec/requests/applications/authorized_applications_spec.rb
433
- - spec/requests/endpoints/authorization_spec.rb
434
- - spec/requests/endpoints/token_spec.rb
435
- - spec/requests/flows/authorization_code_errors_spec.rb
436
- - spec/requests/flows/authorization_code_spec.rb
437
- - spec/requests/flows/client_credentials_spec.rb
438
- - spec/requests/flows/implicit_grant_errors_spec.rb
439
- - spec/requests/flows/implicit_grant_spec.rb
440
- - spec/requests/flows/password_spec.rb
441
- - spec/requests/flows/refresh_token_spec.rb
442
- - spec/requests/flows/revoke_token_spec.rb
443
- - spec/requests/flows/skip_authorization_spec.rb
444
- - spec/requests/protected_resources/metal_spec.rb
445
- - spec/requests/protected_resources/private_api_spec.rb
446
- - spec/routing/custom_controller_routes_spec.rb
447
- - spec/routing/default_routes_spec.rb
448
- - spec/routing/scoped_routes_spec.rb
449
- - spec/spec_helper.rb
450
- - spec/spec_helper_integration.rb
451
- - spec/support/dependencies/factory_bot.rb
452
- - spec/support/doorkeeper_rspec.rb
453
- - spec/support/helpers/access_token_request_helper.rb
454
- - spec/support/helpers/authorization_request_helper.rb
455
- - spec/support/helpers/config_helper.rb
456
- - spec/support/helpers/model_helper.rb
457
- - spec/support/helpers/request_spec_helper.rb
458
- - spec/support/helpers/url_helper.rb
459
- - spec/support/orm/active_record.rb
460
- - spec/support/shared/controllers_shared_context.rb
461
- - spec/support/shared/hashing_shared_context.rb
462
- - spec/support/shared/models_shared_examples.rb
463
- - spec/validators/redirect_uri_validator_spec.rb
464
- - spec/version/version_spec.rb
465
309
  - vendor/assets/stylesheets/doorkeeper/bootstrap.min.css
466
310
  homepage: https://github.com/doorkeeper-gem/doorkeeper
467
311
  licenses:
@@ -491,142 +335,4 @@ rubygems_version: 3.0.2
491
335
  signing_key:
492
336
  specification_version: 4
493
337
  summary: OAuth 2 provider for Rails and Grape
494
- test_files:
495
- - spec/controllers/application_metal_controller_spec.rb
496
- - spec/controllers/applications_controller_spec.rb
497
- - spec/controllers/authorizations_controller_spec.rb
498
- - spec/controllers/protected_resources_controller_spec.rb
499
- - spec/controllers/token_info_controller_spec.rb
500
- - spec/controllers/tokens_controller_spec.rb
501
- - spec/dummy/Rakefile
502
- - spec/dummy/app/assets/config/manifest.js
503
- - spec/dummy/app/controllers/application_controller.rb
504
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
505
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
506
- - spec/dummy/app/controllers/home_controller.rb
507
- - spec/dummy/app/controllers/metal_controller.rb
508
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
509
- - spec/dummy/app/helpers/application_helper.rb
510
- - spec/dummy/app/models/user.rb
511
- - spec/dummy/app/views/home/index.html.erb
512
- - spec/dummy/app/views/layouts/application.html.erb
513
- - spec/dummy/config.ru
514
- - spec/dummy/config/application.rb
515
- - spec/dummy/config/boot.rb
516
- - spec/dummy/config/database.yml
517
- - spec/dummy/config/environment.rb
518
- - spec/dummy/config/environments/development.rb
519
- - spec/dummy/config/environments/production.rb
520
- - spec/dummy/config/environments/test.rb
521
- - spec/dummy/config/initializers/backtrace_silencers.rb
522
- - spec/dummy/config/initializers/doorkeeper.rb
523
- - spec/dummy/config/initializers/secret_token.rb
524
- - spec/dummy/config/initializers/session_store.rb
525
- - spec/dummy/config/initializers/wrap_parameters.rb
526
- - spec/dummy/config/locales/doorkeeper.en.yml
527
- - spec/dummy/config/routes.rb
528
- - spec/dummy/db/migrate/20111122132257_create_users.rb
529
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
530
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
531
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
532
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
533
- - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
534
- - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
535
- - spec/dummy/db/schema.rb
536
- - spec/dummy/public/404.html
537
- - spec/dummy/public/422.html
538
- - spec/dummy/public/500.html
539
- - spec/dummy/public/favicon.ico
540
- - spec/dummy/script/rails
541
- - spec/factories.rb
542
- - spec/generators/application_owner_generator_spec.rb
543
- - spec/generators/confidential_applications_generator_spec.rb
544
- - spec/generators/enable_polymorphic_resource_owner_generator_spec.rb
545
- - spec/generators/install_generator_spec.rb
546
- - spec/generators/migration_generator_spec.rb
547
- - spec/generators/pkce_generator_spec.rb
548
- - spec/generators/previous_refresh_token_generator_spec.rb
549
- - spec/generators/templates/routes.rb
550
- - spec/generators/views_generator_spec.rb
551
- - spec/grape/grape_integration_spec.rb
552
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
553
- - spec/lib/config_spec.rb
554
- - spec/lib/doorkeeper_spec.rb
555
- - spec/lib/models/expirable_spec.rb
556
- - spec/lib/models/reusable_spec.rb
557
- - spec/lib/models/revocable_spec.rb
558
- - spec/lib/models/scopes_spec.rb
559
- - spec/lib/models/secret_storable_spec.rb
560
- - spec/lib/oauth/authorization/uri_builder_spec.rb
561
- - spec/lib/oauth/authorization_code_request_spec.rb
562
- - spec/lib/oauth/base_request_spec.rb
563
- - spec/lib/oauth/base_response_spec.rb
564
- - spec/lib/oauth/client/credentials_spec.rb
565
- - spec/lib/oauth/client_credentials/creator_spec.rb
566
- - spec/lib/oauth/client_credentials/issuer_spec.rb
567
- - spec/lib/oauth/client_credentials/validation_spec.rb
568
- - spec/lib/oauth/client_credentials_integration_spec.rb
569
- - spec/lib/oauth/client_credentials_request_spec.rb
570
- - spec/lib/oauth/client_spec.rb
571
- - spec/lib/oauth/code_request_spec.rb
572
- - spec/lib/oauth/code_response_spec.rb
573
- - spec/lib/oauth/error_response_spec.rb
574
- - spec/lib/oauth/error_spec.rb
575
- - spec/lib/oauth/forbidden_token_response_spec.rb
576
- - spec/lib/oauth/helpers/scope_checker_spec.rb
577
- - spec/lib/oauth/helpers/unique_token_spec.rb
578
- - spec/lib/oauth/helpers/uri_checker_spec.rb
579
- - spec/lib/oauth/invalid_request_response_spec.rb
580
- - spec/lib/oauth/invalid_token_response_spec.rb
581
- - spec/lib/oauth/password_access_token_request_spec.rb
582
- - spec/lib/oauth/pre_authorization_spec.rb
583
- - spec/lib/oauth/refresh_token_request_spec.rb
584
- - spec/lib/oauth/scopes_spec.rb
585
- - spec/lib/oauth/token_request_spec.rb
586
- - spec/lib/oauth/token_response_spec.rb
587
- - spec/lib/oauth/token_spec.rb
588
- - spec/lib/option_spec.rb
589
- - spec/lib/request/strategy_spec.rb
590
- - spec/lib/secret_storing/base_spec.rb
591
- - spec/lib/secret_storing/bcrypt_spec.rb
592
- - spec/lib/secret_storing/plain_spec.rb
593
- - spec/lib/secret_storing/sha256_hash_spec.rb
594
- - spec/lib/server_spec.rb
595
- - spec/lib/stale_records_cleaner_spec.rb
596
- - spec/models/doorkeeper/access_grant_spec.rb
597
- - spec/models/doorkeeper/access_token_spec.rb
598
- - spec/models/doorkeeper/application_spec.rb
599
- - spec/requests/applications/applications_request_spec.rb
600
- - spec/requests/applications/authorized_applications_spec.rb
601
- - spec/requests/endpoints/authorization_spec.rb
602
- - spec/requests/endpoints/token_spec.rb
603
- - spec/requests/flows/authorization_code_errors_spec.rb
604
- - spec/requests/flows/authorization_code_spec.rb
605
- - spec/requests/flows/client_credentials_spec.rb
606
- - spec/requests/flows/implicit_grant_errors_spec.rb
607
- - spec/requests/flows/implicit_grant_spec.rb
608
- - spec/requests/flows/password_spec.rb
609
- - spec/requests/flows/refresh_token_spec.rb
610
- - spec/requests/flows/revoke_token_spec.rb
611
- - spec/requests/flows/skip_authorization_spec.rb
612
- - spec/requests/protected_resources/metal_spec.rb
613
- - spec/requests/protected_resources/private_api_spec.rb
614
- - spec/routing/custom_controller_routes_spec.rb
615
- - spec/routing/default_routes_spec.rb
616
- - spec/routing/scoped_routes_spec.rb
617
- - spec/spec_helper.rb
618
- - spec/spec_helper_integration.rb
619
- - spec/support/dependencies/factory_bot.rb
620
- - spec/support/doorkeeper_rspec.rb
621
- - spec/support/helpers/access_token_request_helper.rb
622
- - spec/support/helpers/authorization_request_helper.rb
623
- - spec/support/helpers/config_helper.rb
624
- - spec/support/helpers/model_helper.rb
625
- - spec/support/helpers/request_spec_helper.rb
626
- - spec/support/helpers/url_helper.rb
627
- - spec/support/orm/active_record.rb
628
- - spec/support/shared/controllers_shared_context.rb
629
- - spec/support/shared/hashing_shared_context.rb
630
- - spec/support/shared/models_shared_examples.rb
631
- - spec/validators/redirect_uri_validator_spec.rb
632
- - spec/version/version_spec.rb
338
+ test_files: []