doorkeeper-mongodb 5.2.3 → 5.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/Rakefile +18 -4
  4. data/lib/doorkeeper/orm/mongoid8/access_grant.rb +26 -0
  5. data/lib/doorkeeper/orm/mongoid8/access_token.rb +38 -0
  6. data/lib/doorkeeper/orm/mongoid8/application.rb +43 -0
  7. data/lib/doorkeeper/orm/mongoid8/stale_records_cleaner.rb +11 -0
  8. data/lib/doorkeeper/orm/mongoid8.rb +50 -0
  9. data/lib/doorkeeper-mongodb/mixins/mongoid/access_token_mixin.rb +45 -5
  10. data/lib/doorkeeper-mongodb/version.rb +2 -2
  11. data/lib/doorkeeper-mongodb.rb +1 -0
  12. data/spec/dummy/app/assets/config/manifest.js +0 -0
  13. data/spec/dummy/app/controllers/application_controller.rb +0 -0
  14. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -0
  15. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -0
  16. data/spec/dummy/app/controllers/home_controller.rb +0 -0
  17. data/spec/dummy/app/controllers/metal_controller.rb +0 -0
  18. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -0
  19. data/spec/dummy/app/helpers/application_helper.rb +0 -0
  20. data/spec/dummy/app/views/home/index.html.erb +0 -0
  21. data/spec/dummy/app/views/layouts/application.html.erb +0 -0
  22. data/spec/dummy/config/application.rb +0 -0
  23. data/spec/dummy/config/boot.rb +0 -0
  24. data/spec/dummy/config/database.yml +0 -0
  25. data/spec/dummy/config/environment.rb +0 -0
  26. data/spec/dummy/config/environments/development.rb +0 -0
  27. data/spec/dummy/config/environments/production.rb +0 -0
  28. data/spec/dummy/config/environments/test.rb +0 -0
  29. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
  30. data/spec/dummy/config/initializers/doorkeeper.rb +7 -2
  31. data/spec/dummy/config/initializers/secret_token.rb +0 -0
  32. data/spec/dummy/config/initializers/session_store.rb +0 -0
  33. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
  34. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -0
  35. data/spec/dummy/config/mongoid8.yml +19 -0
  36. data/spec/dummy/config/routes.rb +0 -0
  37. data/spec/dummy/config.ru +1 -1
  38. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -0
  39. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -0
  40. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -0
  41. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -0
  42. data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -0
  43. data/spec/dummy/db/migrate/20170822064514_enable_pkce.rb +0 -0
  44. data/spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb +0 -0
  45. data/spec/dummy/db/migrate/20230205064514_add_custom_attributes.rb +8 -0
  46. data/spec/dummy/db/schema.rb +3 -1
  47. data/spec/dummy/log/test.log +39440 -0
  48. data/spec/dummy/public/404.html +0 -0
  49. data/spec/dummy/public/422.html +0 -0
  50. data/spec/dummy/public/500.html +0 -0
  51. data/spec/dummy/public/favicon.ico +0 -0
  52. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2L/2LdlR-88TqZc8vSU7Z58xiNpCGRZj0CIlOxSN4Vx2i4.cache +1 -0
  53. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Pn/PnXU_mkG2fLZFm9BwiZ03BZdBTjKuInP-cRXjHS7yJo.cache → 2r/2r0L9eNOmETsg4Tm1IgBdw3J4ahcko41NpILRXu19_A.cache} +0 -0
  54. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/5y/5ywocFQgpSY36nyF_xDKPExhDRo-eqeiqfDvQee1K9k.cache +2 -0
  55. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Qs/QsVgO6vM5Yn9oeYTYlrqtyVnK6sdVDWDa083N7zpfHw.cache → 8r/8rW0CpDDUJZ7xvg86t6jZ6WmyvaVZ0uTPEPRjghFIKo.cache} +0 -0
  56. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{PA/PAH_jI20wRw12tngeJ-V619c30avNLDu5U9Z-9Pc5SQ.cache → Cs/CsfBL8Dls9-jhjFsNYt4DZxu5LWChDMB-xXKjsEFSsU.cache} +0 -0
  57. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{8D/8DJG7JfPvShfLLyeSom6NZ_TcQc6QH27tJ7prEWZPfI.cache → Cv/Cv9WXE_0OqtPUZBXfTWaE8uKx9oFIzqO18ZkwVaBLSg.cache} +0 -0
  58. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Mf/MfB2-0nbsmC548XBSLftafi6BZ9nAquBA-6eu7mAmdE.cache +2 -0
  59. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/N2/N2cUP-Um_nQ5ZTCQr_H0bKIjOSIyV7Ry5sT6-DB9e4A.cache +1 -0
  60. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{FJ/FJlQpfMtpRbrM5P8A7d2FAelFKwo6GrVs2xks8z5GKU.cache → Ot/OtNAnT3d-csAKBtJ8UBLOSwUDyfmOdCWpS08RaSCGsQ.cache} +0 -0
  61. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/P3/P33RwiTMGEu2wZySBEUmf5U7hnfBhdL49wzdUWXYNRs.cache +1 -0
  62. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/RZ/RZAL9gIt4aD731Ikf7UZZNPSZXzhPqtDskLB7nQcWH4.cache +1 -0
  63. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/SQ/SQVJeYO2bM0qgQiOaeVBjYo3SWQZmvixa3tXUjsmuUs.cache +0 -0
  64. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Ma/MaK3K1AoZZ4xM5fOOifhROd73hfZJpP4yGbkGdoYtEk.cache → V2/V2JApVhUSYhvWnNVIbpe58U4xheVkpi0gCStqjDN6-A.cache} +0 -0
  65. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Lk/LklIq5hrBAPESXVUpFMwQ9L-1qTj90sPVi6U19_Xi-Q.cache → VA/VADOUaZFukufOb44ts4KoyQZumPcVJET0bi9RvC7c-o.cache} +1 -1
  66. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Vz/VzdPLfWn16XbpHNJdkDMamAf3QutM29cvvPkDNyy5nE.cache +1 -0
  67. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/W9/W9QfraySVwoRt-SgGOIS0e-iP8R1qP_URwXZw1l6M5E.cache +0 -0
  68. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wy/Wyiw07ngOzgV6RPis_Lo2hhSRkwo2YSqKTEDAF0crhA.cache +0 -0
  69. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Z6/Z6rAtdVt3OXS26vLVCtdO3vmMlttI3ajdpbC2FHk7iQ.cache +0 -0
  70. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/b6/b6QRH6ZdCc0e6bUWu4qni_kZmptaMgWciO8Jl9q6_p8.cache +0 -0
  71. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Pm/PmheG0PGFqDws1qgFOxOyIL-gpMof3Ar9eSRKVLYuik.cache → fP/fPihom3hnc1rQQxpviTvZPRJB_IghWYWP3dDcsGrcLk.cache} +0 -0
  72. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gD/gDU38plXvosMgFK47_PBI9xGVsmsE2tShWEZzxiek3k.cache +1 -0
  73. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gR/gRqL5_jaFW7eA3d2frJmOzw_vFLuvfhwMhotAlsO8J4.cache +2 -0
  74. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jC/jCTZ1jAldKBn4OTANBBmCKzxLrDgok1ur4meoTqlDNg.cache +0 -0
  75. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{yN/yNOFGOsnHmxXNMkuEAWuL1u3jlmdvrdeoTx6DDJ1in8.cache → jc/jcB8w1gBT7JP10DW4OOvvYpW1ZFeMyedngmMy3QbRLQ.cache} +0 -0
  76. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jg/jgxXkkkXf1NPOPrpNdEJzhDt-2xHGzd_-mLkIHWrOr4.cache +2 -0
  77. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nx/nxzZnvk5YyBhTUloQSZZ5zRuaqlsLiHy_AbOzQ3d788.cache +0 -0
  78. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wr/wrlf8nUW2yftpcIA97qImyECR8f8o3OiOdHLdfkmw8c.cache +1 -0
  79. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{qT/qTQIQsmS0Wbbg2JxNn9rxdI5qVOTg5SfyQdaTvr9vLo.cache → xd/xdD4KJ55W3jy5PIrwT0UnDp1toKpUfgrjJBgB4WaPIc.cache} +0 -0
  80. data/spec/support/doorkeeper_rspec.rb +0 -0
  81. data/spec/support/orm/mongoid.rb +18 -2
  82. data/spec/support/orm/mongoid8.rb +6 -0
  83. data/spec/support/render_with_matcher.rb +26 -0
  84. metadata +123 -242
  85. data/spec/controllers/application_metal_controller_spec.rb +0 -64
  86. data/spec/controllers/applications_controller_spec.rb +0 -270
  87. data/spec/controllers/authorizations_controller_spec.rb +0 -744
  88. data/spec/controllers/protected_resources_controller_spec.rb +0 -361
  89. data/spec/controllers/token_info_controller_spec.rb +0 -50
  90. data/spec/controllers/tokens_controller_spec.rb +0 -542
  91. data/spec/doorkeeper/redirect_uri_validator_spec.rb +0 -183
  92. data/spec/doorkeeper/server_spec.rb +0 -50
  93. data/spec/doorkeeper/stale_records_cleaner_spec.rb +0 -103
  94. data/spec/doorkeeper/version_spec.rb +0 -17
  95. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/-o/-ofn45zIfO5vx4VD6m6NXesLf6da5usA-Sbw2SVju3o.cache +0 -2
  96. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/0_/0_ouGcG_o_1zmVmBe-tdQYk594LBwVa1bumjrKtdfEw.cache +0 -0
  97. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2X/2XMMcHbyTSRqh1GkV0xzyIETNtt-zgN6iniziShaKmQ.cache +0 -2
  98. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/4Q/4QQw-pMQ98JIj3xdcFhGBQdysdGPY9rWffRqWMmyjew.cache +0 -1
  99. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/7H/7HjRsym0tTpXFCVhWt6kteMs_-CozKVbr9s5syHm8es.cache +0 -1
  100. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8B/8BxJyv22HPFHu1se_l2J8qW1N9NzZ16UOWOy1YMSgs4.cache +0 -1
  101. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/9x/9xjtGv-yKjj62x9uFwBZg8pTSh9ERPAgANwNo9uwIaA.cache +0 -1
  102. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Bt/BtXO7f0PZ8DNt3TMLYM-zY7LkbWa_KgyB0v1V98M1CQ.cache +0 -1
  103. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/E0/E02f1Q2tutWumMulGCFNfqQNjvEP_hMAK_5E83eWepI.cache +0 -0
  104. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/EZ/EZGpd6pUEJZxO6uT2yIS4Fpn5KX7VDgC9VB3AaemF5Q.cache +0 -2
  105. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/L8/L8mOWakJlWKr6MU85rj0V7yGFfNyIR6vE6YXtqArPGw.cache +0 -1
  106. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/MB/MBWRxa9S470ee8suxVKp0jYgv6K6FQOqKGV0kPGQNMs.cache +0 -1
  107. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ph/Ph7RtH_NvG2I8XpTa8mA8SBQXZDzBPVIh4CH6g7OXJ0.cache +0 -2
  108. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/So/So59ksdx2dw-_A3-zFZ6Palr7fROjm7_0JDZb04temw.cache +0 -0
  109. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wt/WtXL_iDofLeTH_v0Yf3PM421r9b1V0g-VBvMPeu9KA0.cache +0 -0
  110. data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dX/dX6FDdUIy8yBCOoaoXcjf71rX9N_bpiXGJ4Urt32NTk.cache +0 -0
  111. data/spec/factories.rb +0 -30
  112. data/spec/grape/grape_integration_spec.rb +0 -137
  113. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -26
  114. data/spec/lib/config_spec.rb +0 -824
  115. data/spec/lib/doorkeeper_spec.rb +0 -27
  116. data/spec/lib/models/expirable_spec.rb +0 -61
  117. data/spec/lib/models/reusable_spec.rb +0 -40
  118. data/spec/lib/models/revocable_spec.rb +0 -55
  119. data/spec/lib/models/scopes_spec.rb +0 -61
  120. data/spec/lib/models/secret_storable_spec.rb +0 -136
  121. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -35
  122. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -180
  123. data/spec/lib/oauth/base_request_spec.rb +0 -210
  124. data/spec/lib/oauth/base_response_spec.rb +0 -45
  125. data/spec/lib/oauth/client/credentials_spec.rb +0 -90
  126. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -135
  127. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -110
  128. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -92
  129. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
  130. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -105
  131. data/spec/lib/oauth/client_spec.rb +0 -38
  132. data/spec/lib/oauth/code_request_spec.rb +0 -46
  133. data/spec/lib/oauth/code_response_spec.rb +0 -36
  134. data/spec/lib/oauth/error_response_spec.rb +0 -65
  135. data/spec/lib/oauth/error_spec.rb +0 -21
  136. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -20
  137. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -110
  138. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -21
  139. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -262
  140. data/spec/lib/oauth/invalid_request_response_spec.rb +0 -73
  141. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -53
  142. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -202
  143. data/spec/lib/oauth/pre_authorization_spec.rb +0 -230
  144. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -166
  145. data/spec/lib/oauth/scopes_spec.rb +0 -146
  146. data/spec/lib/oauth/token_request_spec.rb +0 -164
  147. data/spec/lib/oauth/token_response_spec.rb +0 -84
  148. data/spec/lib/oauth/token_spec.rb +0 -156
  149. data/spec/lib/option_spec.rb +0 -51
  150. data/spec/lib/request/strategy_spec.rb +0 -51
  151. data/spec/lib/secret_storing/base_spec.rb +0 -61
  152. data/spec/lib/secret_storing/bcrypt_spec.rb +0 -50
  153. data/spec/lib/secret_storing/plain_spec.rb +0 -45
  154. data/spec/lib/secret_storing/sha256_hash_spec.rb +0 -49
  155. data/spec/models/doorkeeper/access_grant_spec.rb +0 -173
  156. data/spec/models/doorkeeper/access_token_spec.rb +0 -644
  157. data/spec/models/doorkeeper/application_spec.rb +0 -499
  158. data/spec/requests/applications/applications_request_spec.rb +0 -257
  159. data/spec/requests/applications/authorized_applications_spec.rb +0 -32
  160. data/spec/requests/endpoints/authorization_spec.rb +0 -91
  161. data/spec/requests/endpoints/token_spec.rb +0 -85
  162. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -86
  163. data/spec/requests/flows/authorization_code_spec.rb +0 -559
  164. data/spec/requests/flows/client_credentials_spec.rb +0 -219
  165. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -46
  166. data/spec/requests/flows/implicit_grant_spec.rb +0 -91
  167. data/spec/requests/flows/password_spec.rb +0 -356
  168. data/spec/requests/flows/refresh_token_spec.rb +0 -255
  169. data/spec/requests/flows/revoke_token_spec.rb +0 -196
  170. data/spec/requests/flows/skip_authorization_spec.rb +0 -66
  171. data/spec/requests/protected_resources/metal_spec.rb +0 -16
  172. data/spec/requests/protected_resources/private_api_spec.rb +0 -83
  173. data/spec/routing/custom_controller_routes_spec.rb +0 -133
  174. data/spec/routing/default_routes_spec.rb +0 -41
  175. data/spec/routing/scoped_routes_spec.rb +0 -47
  176. data/spec/spec_helper.rb +0 -54
  177. data/spec/spec_helper_integration.rb +0 -4
  178. data/spec/support/dependencies/factory_bot.rb +0 -4
  179. data/spec/support/helpers/access_token_request_helper.rb +0 -14
  180. data/spec/support/helpers/authorization_request_helper.rb +0 -43
  181. data/spec/support/helpers/config_helper.rb +0 -11
  182. data/spec/support/helpers/model_helper.rb +0 -78
  183. data/spec/support/helpers/request_spec_helper.rb +0 -98
  184. data/spec/support/helpers/url_helper.rb +0 -62
  185. data/spec/support/orm/active_record.rb +0 -5
  186. data/spec/support/shared/controllers_shared_context.rb +0 -100
  187. data/spec/support/shared/hashing_shared_context.rb +0 -40
  188. data/spec/support/shared/models_shared_examples.rb +0 -56
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper-mongodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.3
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-11-21 00:00:00.000000000 Z
12
+ date: 2024-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: doorkeeper
@@ -32,7 +32,7 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: '6.0'
34
34
  - !ruby/object:Gem::Dependency
35
- name: coveralls
35
+ name: capybara
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
@@ -46,47 +46,61 @@ dependencies:
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  - !ruby/object:Gem::Dependency
49
- name: database_cleaner
49
+ name: coveralls_reborn
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.6.0
54
+ version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.6.0
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: database_cleaner-mongoid
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
62
76
  - !ruby/object:Gem::Dependency
63
77
  name: factory_bot
64
78
  requirement: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: '4.8'
82
+ version: '6.0'
69
83
  type: :development
70
84
  prerelease: false
71
85
  version_requirements: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - "~>"
74
88
  - !ruby/object:Gem::Version
75
- version: '4.8'
89
+ version: '6.0'
76
90
  - !ruby/object:Gem::Dependency
77
91
  name: generator_spec
78
92
  requirement: !ruby/object:Gem::Requirement
79
93
  requirements:
80
94
  - - "~>"
81
95
  - !ruby/object:Gem::Version
82
- version: 0.9.4
96
+ version: 0.10.0
83
97
  type: :development
84
98
  prerelease: false
85
99
  version_requirements: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - "~>"
88
102
  - !ruby/object:Gem::Version
89
- version: 0.9.4
103
+ version: 0.10.0
90
104
  - !ruby/object:Gem::Dependency
91
105
  name: grape
92
106
  requirement: !ruby/object:Gem::Requirement
@@ -101,6 +115,20 @@ dependencies:
101
115
  - - ">="
102
116
  - !ruby/object:Gem::Version
103
117
  version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: rake
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: 11.3.0
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 11.3.0
104
132
  - !ruby/object:Gem::Dependency
105
133
  name: rspec-rails
106
134
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +143,21 @@ dependencies:
115
143
  - - ">="
116
144
  - !ruby/object:Gem::Version
117
145
  version: '0'
118
- description: Doorkeeper Mongoid ORM extension
146
+ - !ruby/object:Gem::Dependency
147
+ name: timecop
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ type: :development
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ description: Doorkeeper Mongoid ORM extension
119
161
  email:
120
162
  - bulaj.nikita@gmail.com
121
163
  executables: []
@@ -158,16 +200,11 @@ files:
158
200
  - lib/doorkeeper/orm/mongoid7/access_token.rb
159
201
  - lib/doorkeeper/orm/mongoid7/application.rb
160
202
  - lib/doorkeeper/orm/mongoid7/stale_records_cleaner.rb
161
- - spec/controllers/application_metal_controller_spec.rb
162
- - spec/controllers/applications_controller_spec.rb
163
- - spec/controllers/authorizations_controller_spec.rb
164
- - spec/controllers/protected_resources_controller_spec.rb
165
- - spec/controllers/token_info_controller_spec.rb
166
- - spec/controllers/tokens_controller_spec.rb
167
- - spec/doorkeeper/redirect_uri_validator_spec.rb
168
- - spec/doorkeeper/server_spec.rb
169
- - spec/doorkeeper/stale_records_cleaner_spec.rb
170
- - spec/doorkeeper/version_spec.rb
203
+ - lib/doorkeeper/orm/mongoid8.rb
204
+ - lib/doorkeeper/orm/mongoid8/access_grant.rb
205
+ - lib/doorkeeper/orm/mongoid8/access_token.rb
206
+ - lib/doorkeeper/orm/mongoid8/application.rb
207
+ - lib/doorkeeper/orm/mongoid8/stale_records_cleaner.rb
171
208
  - spec/dummy/Rakefile
172
209
  - spec/dummy/app/assets/config/manifest.js
173
210
  - spec/dummy/app/controllers/application_controller.rb
@@ -199,6 +236,7 @@ files:
199
236
  - spec/dummy/config/mongoid5.yml
200
237
  - spec/dummy/config/mongoid6.yml
201
238
  - spec/dummy/config/mongoid7.yml
239
+ - spec/dummy/config/mongoid8.yml
202
240
  - spec/dummy/config/routes.rb
203
241
  - spec/dummy/db/migrate/20111122132257_create_users.rb
204
242
  - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
@@ -207,124 +245,50 @@ files:
207
245
  - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
208
246
  - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
209
247
  - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
248
+ - spec/dummy/db/migrate/20230205064514_add_custom_attributes.rb
210
249
  - spec/dummy/db/schema.rb
250
+ - spec/dummy/log/test.log
211
251
  - spec/dummy/public/404.html
212
252
  - spec/dummy/public/422.html
213
253
  - spec/dummy/public/500.html
214
254
  - spec/dummy/public/favicon.ico
215
255
  - spec/dummy/script/rails
216
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/-o/-ofn45zIfO5vx4VD6m6NXesLf6da5usA-Sbw2SVju3o.cache
217
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/0_/0_ouGcG_o_1zmVmBe-tdQYk594LBwVa1bumjrKtdfEw.cache
218
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2X/2XMMcHbyTSRqh1GkV0xzyIETNtt-zgN6iniziShaKmQ.cache
219
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/4Q/4QQw-pMQ98JIj3xdcFhGBQdysdGPY9rWffRqWMmyjew.cache
220
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/7H/7HjRsym0tTpXFCVhWt6kteMs_-CozKVbr9s5syHm8es.cache
221
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8B/8BxJyv22HPFHu1se_l2J8qW1N9NzZ16UOWOy1YMSgs4.cache
222
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8D/8DJG7JfPvShfLLyeSom6NZ_TcQc6QH27tJ7prEWZPfI.cache
223
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/9x/9xjtGv-yKjj62x9uFwBZg8pTSh9ERPAgANwNo9uwIaA.cache
224
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Bt/BtXO7f0PZ8DNt3TMLYM-zY7LkbWa_KgyB0v1V98M1CQ.cache
225
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/E0/E02f1Q2tutWumMulGCFNfqQNjvEP_hMAK_5E83eWepI.cache
226
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/EZ/EZGpd6pUEJZxO6uT2yIS4Fpn5KX7VDgC9VB3AaemF5Q.cache
227
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/FJ/FJlQpfMtpRbrM5P8A7d2FAelFKwo6GrVs2xks8z5GKU.cache
228
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/L8/L8mOWakJlWKr6MU85rj0V7yGFfNyIR6vE6YXtqArPGw.cache
229
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Lk/LklIq5hrBAPESXVUpFMwQ9L-1qTj90sPVi6U19_Xi-Q.cache
230
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/MB/MBWRxa9S470ee8suxVKp0jYgv6K6FQOqKGV0kPGQNMs.cache
231
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ma/MaK3K1AoZZ4xM5fOOifhROd73hfZJpP4yGbkGdoYtEk.cache
232
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/PA/PAH_jI20wRw12tngeJ-V619c30avNLDu5U9Z-9Pc5SQ.cache
233
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ph/Ph7RtH_NvG2I8XpTa8mA8SBQXZDzBPVIh4CH6g7OXJ0.cache
234
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Pm/PmheG0PGFqDws1qgFOxOyIL-gpMof3Ar9eSRKVLYuik.cache
235
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnXU_mkG2fLZFm9BwiZ03BZdBTjKuInP-cRXjHS7yJo.cache
236
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Qs/QsVgO6vM5Yn9oeYTYlrqtyVnK6sdVDWDa083N7zpfHw.cache
237
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/So/So59ksdx2dw-_A3-zFZ6Palr7fROjm7_0JDZb04temw.cache
238
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wt/WtXL_iDofLeTH_v0Yf3PM421r9b1V0g-VBvMPeu9KA0.cache
256
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2L/2LdlR-88TqZc8vSU7Z58xiNpCGRZj0CIlOxSN4Vx2i4.cache
257
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2r/2r0L9eNOmETsg4Tm1IgBdw3J4ahcko41NpILRXu19_A.cache
258
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/5y/5ywocFQgpSY36nyF_xDKPExhDRo-eqeiqfDvQee1K9k.cache
259
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8r/8rW0CpDDUJZ7xvg86t6jZ6WmyvaVZ0uTPEPRjghFIKo.cache
260
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Cs/CsfBL8Dls9-jhjFsNYt4DZxu5LWChDMB-xXKjsEFSsU.cache
261
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Cv/Cv9WXE_0OqtPUZBXfTWaE8uKx9oFIzqO18ZkwVaBLSg.cache
262
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Mf/MfB2-0nbsmC548XBSLftafi6BZ9nAquBA-6eu7mAmdE.cache
263
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/N2/N2cUP-Um_nQ5ZTCQr_H0bKIjOSIyV7Ry5sT6-DB9e4A.cache
264
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ot/OtNAnT3d-csAKBtJ8UBLOSwUDyfmOdCWpS08RaSCGsQ.cache
265
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/P3/P33RwiTMGEu2wZySBEUmf5U7hnfBhdL49wzdUWXYNRs.cache
266
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/RZ/RZAL9gIt4aD731Ikf7UZZNPSZXzhPqtDskLB7nQcWH4.cache
267
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/SQ/SQVJeYO2bM0qgQiOaeVBjYo3SWQZmvixa3tXUjsmuUs.cache
268
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/V2/V2JApVhUSYhvWnNVIbpe58U4xheVkpi0gCStqjDN6-A.cache
269
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/VA/VADOUaZFukufOb44ts4KoyQZumPcVJET0bi9RvC7c-o.cache
270
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Vz/VzdPLfWn16XbpHNJdkDMamAf3QutM29cvvPkDNyy5nE.cache
271
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/W9/W9QfraySVwoRt-SgGOIS0e-iP8R1qP_URwXZw1l6M5E.cache
272
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wy/Wyiw07ngOzgV6RPis_Lo2hhSRkwo2YSqKTEDAF0crhA.cache
273
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Z6/Z6rAtdVt3OXS26vLVCtdO3vmMlttI3ajdpbC2FHk7iQ.cache
239
274
  - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/b6/b6QRH6ZdCc0e6bUWu4qni_kZmptaMgWciO8Jl9q6_p8.cache
240
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dX/dX6FDdUIy8yBCOoaoXcjf71rX9N_bpiXGJ4Urt32NTk.cache
275
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/fP/fPihom3hnc1rQQxpviTvZPRJB_IghWYWP3dDcsGrcLk.cache
276
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gD/gDU38plXvosMgFK47_PBI9xGVsmsE2tShWEZzxiek3k.cache
277
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gR/gRqL5_jaFW7eA3d2frJmOzw_vFLuvfhwMhotAlsO8J4.cache
241
278
  - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jC/jCTZ1jAldKBn4OTANBBmCKzxLrDgok1ur4meoTqlDNg.cache
242
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/qT/qTQIQsmS0Wbbg2JxNn9rxdI5qVOTg5SfyQdaTvr9vLo.cache
243
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/yN/yNOFGOsnHmxXNMkuEAWuL1u3jlmdvrdeoTx6DDJ1in8.cache
244
- - spec/factories.rb
245
- - spec/grape/grape_integration_spec.rb
246
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
247
- - spec/lib/config_spec.rb
248
- - spec/lib/doorkeeper_spec.rb
249
- - spec/lib/models/expirable_spec.rb
250
- - spec/lib/models/reusable_spec.rb
251
- - spec/lib/models/revocable_spec.rb
252
- - spec/lib/models/scopes_spec.rb
253
- - spec/lib/models/secret_storable_spec.rb
254
- - spec/lib/oauth/authorization/uri_builder_spec.rb
255
- - spec/lib/oauth/authorization_code_request_spec.rb
256
- - spec/lib/oauth/base_request_spec.rb
257
- - spec/lib/oauth/base_response_spec.rb
258
- - spec/lib/oauth/client/credentials_spec.rb
259
- - spec/lib/oauth/client_credentials/creator_spec.rb
260
- - spec/lib/oauth/client_credentials/issuer_spec.rb
261
- - spec/lib/oauth/client_credentials/validation_spec.rb
262
- - spec/lib/oauth/client_credentials_integration_spec.rb
263
- - spec/lib/oauth/client_credentials_request_spec.rb
264
- - spec/lib/oauth/client_spec.rb
265
- - spec/lib/oauth/code_request_spec.rb
266
- - spec/lib/oauth/code_response_spec.rb
267
- - spec/lib/oauth/error_response_spec.rb
268
- - spec/lib/oauth/error_spec.rb
269
- - spec/lib/oauth/forbidden_token_response_spec.rb
270
- - spec/lib/oauth/helpers/scope_checker_spec.rb
271
- - spec/lib/oauth/helpers/unique_token_spec.rb
272
- - spec/lib/oauth/helpers/uri_checker_spec.rb
273
- - spec/lib/oauth/invalid_request_response_spec.rb
274
- - spec/lib/oauth/invalid_token_response_spec.rb
275
- - spec/lib/oauth/password_access_token_request_spec.rb
276
- - spec/lib/oauth/pre_authorization_spec.rb
277
- - spec/lib/oauth/refresh_token_request_spec.rb
278
- - spec/lib/oauth/scopes_spec.rb
279
- - spec/lib/oauth/token_request_spec.rb
280
- - spec/lib/oauth/token_response_spec.rb
281
- - spec/lib/oauth/token_spec.rb
282
- - spec/lib/option_spec.rb
283
- - spec/lib/request/strategy_spec.rb
284
- - spec/lib/secret_storing/base_spec.rb
285
- - spec/lib/secret_storing/bcrypt_spec.rb
286
- - spec/lib/secret_storing/plain_spec.rb
287
- - spec/lib/secret_storing/sha256_hash_spec.rb
288
- - spec/models/doorkeeper/access_grant_spec.rb
289
- - spec/models/doorkeeper/access_token_spec.rb
290
- - spec/models/doorkeeper/application_spec.rb
291
- - spec/requests/applications/applications_request_spec.rb
292
- - spec/requests/applications/authorized_applications_spec.rb
293
- - spec/requests/endpoints/authorization_spec.rb
294
- - spec/requests/endpoints/token_spec.rb
295
- - spec/requests/flows/authorization_code_errors_spec.rb
296
- - spec/requests/flows/authorization_code_spec.rb
297
- - spec/requests/flows/client_credentials_spec.rb
298
- - spec/requests/flows/implicit_grant_errors_spec.rb
299
- - spec/requests/flows/implicit_grant_spec.rb
300
- - spec/requests/flows/password_spec.rb
301
- - spec/requests/flows/refresh_token_spec.rb
302
- - spec/requests/flows/revoke_token_spec.rb
303
- - spec/requests/flows/skip_authorization_spec.rb
304
- - spec/requests/protected_resources/metal_spec.rb
305
- - spec/requests/protected_resources/private_api_spec.rb
306
- - spec/routing/custom_controller_routes_spec.rb
307
- - spec/routing/default_routes_spec.rb
308
- - spec/routing/scoped_routes_spec.rb
309
- - spec/spec_helper.rb
310
- - spec/spec_helper_integration.rb
311
- - spec/support/dependencies/factory_bot.rb
279
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jc/jcB8w1gBT7JP10DW4OOvvYpW1ZFeMyedngmMy3QbRLQ.cache
280
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jg/jgxXkkkXf1NPOPrpNdEJzhDt-2xHGzd_-mLkIHWrOr4.cache
281
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nx/nxzZnvk5YyBhTUloQSZZ5zRuaqlsLiHy_AbOzQ3d788.cache
282
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wr/wrlf8nUW2yftpcIA97qImyECR8f8o3OiOdHLdfkmw8c.cache
283
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/xd/xdD4KJ55W3jy5PIrwT0UnDp1toKpUfgrjJBgB4WaPIc.cache
312
284
  - spec/support/doorkeeper_rspec.rb
313
- - spec/support/helpers/access_token_request_helper.rb
314
- - spec/support/helpers/authorization_request_helper.rb
315
- - spec/support/helpers/config_helper.rb
316
- - spec/support/helpers/model_helper.rb
317
- - spec/support/helpers/request_spec_helper.rb
318
- - spec/support/helpers/url_helper.rb
319
- - spec/support/orm/active_record.rb
320
285
  - spec/support/orm/mongoid.rb
321
286
  - spec/support/orm/mongoid4.rb
322
287
  - spec/support/orm/mongoid5.rb
323
288
  - spec/support/orm/mongoid6.rb
324
289
  - spec/support/orm/mongoid7.rb
325
- - spec/support/shared/controllers_shared_context.rb
326
- - spec/support/shared/hashing_shared_context.rb
327
- - spec/support/shared/models_shared_examples.rb
290
+ - spec/support/orm/mongoid8.rb
291
+ - spec/support/render_with_matcher.rb
328
292
  homepage: http://github.com/doorkeeper-gem/doorkeeper-mongodb
329
293
  licenses:
330
294
  - MIT
@@ -344,7 +308,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
344
308
  - !ruby/object:Gem::Version
345
309
  version: '0'
346
310
  requirements: []
347
- rubygems_version: 3.0.8
311
+ rubygems_version: 3.1.6
348
312
  signing_key:
349
313
  specification_version: 4
350
314
  summary: Doorkeeper Mongoid ORM extension
@@ -368,12 +332,14 @@ test_files:
368
332
  - spec/dummy/db/migrate/20170822064514_enable_pkce.rb
369
333
  - spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
370
334
  - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
335
+ - spec/dummy/db/migrate/20230205064514_add_custom_attributes.rb
371
336
  - spec/dummy/db/migrate/20111122132257_create_users.rb
372
337
  - spec/dummy/public/500.html
373
338
  - spec/dummy/public/404.html
374
339
  - spec/dummy/public/422.html
375
340
  - spec/dummy/public/favicon.ico
376
341
  - spec/dummy/config/locales/doorkeeper.en.yml
342
+ - spec/dummy/config/mongoid8.yml
377
343
  - spec/dummy/config/environment.rb
378
344
  - spec/dummy/config/database.yml
379
345
  - spec/dummy/config/initializers/doorkeeper.rb
@@ -394,125 +360,40 @@ test_files:
394
360
  - spec/dummy/config/application.rb
395
361
  - spec/dummy/Rakefile
396
362
  - spec/dummy/script/rails
397
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/L8/L8mOWakJlWKr6MU85rj0V7yGFfNyIR6vE6YXtqArPGw.cache
363
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/VA/VADOUaZFukufOb44ts4KoyQZumPcVJET0bi9RvC7c-o.cache
398
364
  - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jC/jCTZ1jAldKBn4OTANBBmCKzxLrDgok1ur4meoTqlDNg.cache
399
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/MB/MBWRxa9S470ee8suxVKp0jYgv6K6FQOqKGV0kPGQNMs.cache
400
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/qT/qTQIQsmS0Wbbg2JxNn9rxdI5qVOTg5SfyQdaTvr9vLo.cache
401
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ph/Ph7RtH_NvG2I8XpTa8mA8SBQXZDzBPVIh4CH6g7OXJ0.cache
402
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/E0/E02f1Q2tutWumMulGCFNfqQNjvEP_hMAK_5E83eWepI.cache
403
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Pm/PmheG0PGFqDws1qgFOxOyIL-gpMof3Ar9eSRKVLYuik.cache
404
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/9x/9xjtGv-yKjj62x9uFwBZg8pTSh9ERPAgANwNo9uwIaA.cache
405
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ma/MaK3K1AoZZ4xM5fOOifhROd73hfZJpP4yGbkGdoYtEk.cache
406
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/EZ/EZGpd6pUEJZxO6uT2yIS4Fpn5KX7VDgC9VB3AaemF5Q.cache
407
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Bt/BtXO7f0PZ8DNt3TMLYM-zY7LkbWa_KgyB0v1V98M1CQ.cache
408
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/PA/PAH_jI20wRw12tngeJ-V619c30avNLDu5U9Z-9Pc5SQ.cache
409
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/FJ/FJlQpfMtpRbrM5P8A7d2FAelFKwo6GrVs2xks8z5GKU.cache
410
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Qs/QsVgO6vM5Yn9oeYTYlrqtyVnK6sdVDWDa083N7zpfHw.cache
411
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/7H/7HjRsym0tTpXFCVhWt6kteMs_-CozKVbr9s5syHm8es.cache
412
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/0_/0_ouGcG_o_1zmVmBe-tdQYk594LBwVa1bumjrKtdfEw.cache
413
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dX/dX6FDdUIy8yBCOoaoXcjf71rX9N_bpiXGJ4Urt32NTk.cache
414
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/yN/yNOFGOsnHmxXNMkuEAWuL1u3jlmdvrdeoTx6DDJ1in8.cache
415
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Lk/LklIq5hrBAPESXVUpFMwQ9L-1qTj90sPVi6U19_Xi-Q.cache
416
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8D/8DJG7JfPvShfLLyeSom6NZ_TcQc6QH27tJ7prEWZPfI.cache
417
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnXU_mkG2fLZFm9BwiZ03BZdBTjKuInP-cRXjHS7yJo.cache
365
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Cv/Cv9WXE_0OqtPUZBXfTWaE8uKx9oFIzqO18ZkwVaBLSg.cache
366
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jc/jcB8w1gBT7JP10DW4OOvvYpW1ZFeMyedngmMy3QbRLQ.cache
367
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gD/gDU38plXvosMgFK47_PBI9xGVsmsE2tShWEZzxiek3k.cache
368
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/V2/V2JApVhUSYhvWnNVIbpe58U4xheVkpi0gCStqjDN6-A.cache
369
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Cs/CsfBL8Dls9-jhjFsNYt4DZxu5LWChDMB-xXKjsEFSsU.cache
370
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2r/2r0L9eNOmETsg4Tm1IgBdw3J4ahcko41NpILRXu19_A.cache
371
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Mf/MfB2-0nbsmC548XBSLftafi6BZ9nAquBA-6eu7mAmdE.cache
372
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/5y/5ywocFQgpSY36nyF_xDKPExhDRo-eqeiqfDvQee1K9k.cache
373
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8r/8rW0CpDDUJZ7xvg86t6jZ6WmyvaVZ0uTPEPRjghFIKo.cache
374
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/N2/N2cUP-Um_nQ5ZTCQr_H0bKIjOSIyV7Ry5sT6-DB9e4A.cache
375
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jg/jgxXkkkXf1NPOPrpNdEJzhDt-2xHGzd_-mLkIHWrOr4.cache
376
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/SQ/SQVJeYO2bM0qgQiOaeVBjYo3SWQZmvixa3tXUjsmuUs.cache
377
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wr/wrlf8nUW2yftpcIA97qImyECR8f8o3OiOdHLdfkmw8c.cache
378
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/RZ/RZAL9gIt4aD731Ikf7UZZNPSZXzhPqtDskLB7nQcWH4.cache
379
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2L/2LdlR-88TqZc8vSU7Z58xiNpCGRZj0CIlOxSN4Vx2i4.cache
380
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nx/nxzZnvk5YyBhTUloQSZZ5zRuaqlsLiHy_AbOzQ3d788.cache
381
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ot/OtNAnT3d-csAKBtJ8UBLOSwUDyfmOdCWpS08RaSCGsQ.cache
382
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/xd/xdD4KJ55W3jy5PIrwT0UnDp1toKpUfgrjJBgB4WaPIc.cache
383
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gR/gRqL5_jaFW7eA3d2frJmOzw_vFLuvfhwMhotAlsO8J4.cache
384
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wy/Wyiw07ngOzgV6RPis_Lo2hhSRkwo2YSqKTEDAF0crhA.cache
385
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Z6/Z6rAtdVt3OXS26vLVCtdO3vmMlttI3ajdpbC2FHk7iQ.cache
418
386
  - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/b6/b6QRH6ZdCc0e6bUWu4qni_kZmptaMgWciO8Jl9q6_p8.cache
419
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8B/8BxJyv22HPFHu1se_l2J8qW1N9NzZ16UOWOy1YMSgs4.cache
420
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/4Q/4QQw-pMQ98JIj3xdcFhGBQdysdGPY9rWffRqWMmyjew.cache
421
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wt/WtXL_iDofLeTH_v0Yf3PM421r9b1V0g-VBvMPeu9KA0.cache
422
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2X/2XMMcHbyTSRqh1GkV0xzyIETNtt-zgN6iniziShaKmQ.cache
423
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/So/So59ksdx2dw-_A3-zFZ6Palr7fROjm7_0JDZb04temw.cache
424
- - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/-o/-ofn45zIfO5vx4VD6m6NXesLf6da5usA-Sbw2SVju3o.cache
425
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
426
- - spec/support/helpers/authorization_request_helper.rb
427
- - spec/support/helpers/access_token_request_helper.rb
428
- - spec/support/helpers/request_spec_helper.rb
429
- - spec/support/helpers/config_helper.rb
430
- - spec/support/helpers/model_helper.rb
431
- - spec/support/helpers/url_helper.rb
432
- - spec/support/dependencies/factory_bot.rb
433
- - spec/support/shared/hashing_shared_context.rb
434
- - spec/support/shared/models_shared_examples.rb
435
- - spec/support/shared/controllers_shared_context.rb
387
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/fP/fPihom3hnc1rQQxpviTvZPRJB_IghWYWP3dDcsGrcLk.cache
388
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/W9/W9QfraySVwoRt-SgGOIS0e-iP8R1qP_URwXZw1l6M5E.cache
389
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Vz/VzdPLfWn16XbpHNJdkDMamAf3QutM29cvvPkDNyy5nE.cache
390
+ - spec/dummy/tmp/cache/assets/sprockets/v4.0.0/P3/P33RwiTMGEu2wZySBEUmf5U7hnfBhdL49wzdUWXYNRs.cache
391
+ - spec/dummy/log/test.log
436
392
  - spec/support/orm/mongoid7.rb
437
393
  - spec/support/orm/mongoid6.rb
438
394
  - spec/support/orm/mongoid4.rb
395
+ - spec/support/orm/mongoid8.rb
439
396
  - spec/support/orm/mongoid.rb
440
- - spec/support/orm/active_record.rb
441
397
  - spec/support/orm/mongoid5.rb
442
398
  - spec/support/doorkeeper_rspec.rb
443
- - spec/models/doorkeeper/application_spec.rb
444
- - spec/models/doorkeeper/access_grant_spec.rb
445
- - spec/models/doorkeeper/access_token_spec.rb
446
- - spec/controllers/tokens_controller_spec.rb
447
- - spec/controllers/protected_resources_controller_spec.rb
448
- - spec/controllers/authorizations_controller_spec.rb
449
- - spec/controllers/applications_controller_spec.rb
450
- - spec/controllers/application_metal_controller_spec.rb
451
- - spec/controllers/token_info_controller_spec.rb
452
- - spec/requests/protected_resources/metal_spec.rb
453
- - spec/requests/protected_resources/private_api_spec.rb
454
- - spec/requests/applications/applications_request_spec.rb
455
- - spec/requests/applications/authorized_applications_spec.rb
456
- - spec/requests/endpoints/token_spec.rb
457
- - spec/requests/endpoints/authorization_spec.rb
458
- - spec/requests/flows/client_credentials_spec.rb
459
- - spec/requests/flows/password_spec.rb
460
- - spec/requests/flows/authorization_code_spec.rb
461
- - spec/requests/flows/refresh_token_spec.rb
462
- - spec/requests/flows/revoke_token_spec.rb
463
- - spec/requests/flows/skip_authorization_spec.rb
464
- - spec/requests/flows/implicit_grant_errors_spec.rb
465
- - spec/requests/flows/authorization_code_errors_spec.rb
466
- - spec/requests/flows/implicit_grant_spec.rb
467
- - spec/routing/scoped_routes_spec.rb
468
- - spec/routing/default_routes_spec.rb
469
- - spec/routing/custom_controller_routes_spec.rb
470
- - spec/spec_helper_integration.rb
471
- - spec/factories.rb
472
- - spec/grape/grape_integration_spec.rb
473
- - spec/spec_helper.rb
474
- - spec/lib/request/strategy_spec.rb
475
- - spec/lib/secret_storing/bcrypt_spec.rb
476
- - spec/lib/secret_storing/plain_spec.rb
477
- - spec/lib/secret_storing/sha256_hash_spec.rb
478
- - spec/lib/secret_storing/base_spec.rb
479
- - spec/lib/models/reusable_spec.rb
480
- - spec/lib/models/expirable_spec.rb
481
- - spec/lib/models/secret_storable_spec.rb
482
- - spec/lib/models/scopes_spec.rb
483
- - spec/lib/models/revocable_spec.rb
484
- - spec/lib/config_spec.rb
485
- - spec/lib/oauth/token_spec.rb
486
- - spec/lib/oauth/base_request_spec.rb
487
- - spec/lib/oauth/helpers/uri_checker_spec.rb
488
- - spec/lib/oauth/helpers/scope_checker_spec.rb
489
- - spec/lib/oauth/helpers/unique_token_spec.rb
490
- - spec/lib/oauth/error_spec.rb
491
- - spec/lib/oauth/client_spec.rb
492
- - spec/lib/oauth/client_credentials_integration_spec.rb
493
- - spec/lib/oauth/password_access_token_request_spec.rb
494
- - spec/lib/oauth/client_credentials_request_spec.rb
495
- - spec/lib/oauth/refresh_token_request_spec.rb
496
- - spec/lib/oauth/invalid_request_response_spec.rb
497
- - spec/lib/oauth/code_request_spec.rb
498
- - spec/lib/oauth/pre_authorization_spec.rb
499
- - spec/lib/oauth/client/credentials_spec.rb
500
- - spec/lib/oauth/code_response_spec.rb
501
- - spec/lib/oauth/error_response_spec.rb
502
- - spec/lib/oauth/client_credentials/validation_spec.rb
503
- - spec/lib/oauth/client_credentials/creator_spec.rb
504
- - spec/lib/oauth/client_credentials/issuer_spec.rb
505
- - spec/lib/oauth/authorization_code_request_spec.rb
506
- - spec/lib/oauth/invalid_token_response_spec.rb
507
- - spec/lib/oauth/forbidden_token_response_spec.rb
508
- - spec/lib/oauth/scopes_spec.rb
509
- - spec/lib/oauth/token_response_spec.rb
510
- - spec/lib/oauth/authorization/uri_builder_spec.rb
511
- - spec/lib/oauth/token_request_spec.rb
512
- - spec/lib/oauth/base_response_spec.rb
513
- - spec/lib/option_spec.rb
514
- - spec/lib/doorkeeper_spec.rb
515
- - spec/doorkeeper/stale_records_cleaner_spec.rb
516
- - spec/doorkeeper/redirect_uri_validator_spec.rb
517
- - spec/doorkeeper/version_spec.rb
518
- - spec/doorkeeper/server_spec.rb
399
+ - spec/support/render_with_matcher.rb
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "spec_helper_integration"
4
-
5
- RSpec.describe Doorkeeper::ApplicationMetalController do
6
- controller(described_class) do
7
- def index
8
- render json: {}, status: 200
9
- end
10
-
11
- def create
12
- render json: {}, status: 200
13
- end
14
- end
15
-
16
- it "lazy run hooks" do
17
- i = 0
18
- ActiveSupport.on_load(:doorkeeper_metal_controller) { i += 1 }
19
-
20
- expect(i).to eq 1
21
- end
22
-
23
- describe "enforce_content_type" do
24
- before { allow(Doorkeeper.config).to receive(:enforce_content_type).and_return(flag) }
25
-
26
- context "when enabled" do
27
- let(:flag) { true }
28
-
29
- it "returns a 200 for the requests without body" do
30
- get :index, params: {}
31
- expect(response).to have_http_status 200
32
- end
33
-
34
- it "returns a 200 for the requests with body and correct media type" do
35
- post :create, params: {}, as: :url_encoded_form
36
- expect(response).to have_http_status 200
37
- end
38
-
39
- it "returns a 415 for the requests with body and incorrect media type" do
40
- post :create, params: {}, as: :json
41
- expect(response).to have_http_status 415
42
- end
43
- end
44
-
45
- context "when disabled" do
46
- let(:flag) { false }
47
-
48
- it "returns a 200 for the correct media type" do
49
- get :index, as: :url_encoded_form
50
- expect(response).to have_http_status 200
51
- end
52
-
53
- it "returns a 200 for an incorrect media type" do
54
- get :index, as: :json
55
- expect(response).to have_http_status 200
56
- end
57
-
58
- it "returns a 200 for the requests with body and incorrect media type" do
59
- post :create, params: {}, as: :json
60
- expect(response).to have_http_status 200
61
- end
62
- end
63
- end
64
- end