doorkeeper 4.2.6 → 5.5.4

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 (274) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +1049 -0
  3. data/README.md +110 -353
  4. data/app/assets/stylesheets/doorkeeper/admin/application.css +2 -2
  5. data/app/controllers/doorkeeper/application_controller.rb +6 -7
  6. data/app/controllers/doorkeeper/application_metal_controller.rb +7 -11
  7. data/app/controllers/doorkeeper/applications_controller.rb +65 -16
  8. data/app/controllers/doorkeeper/authorizations_controller.rb +97 -17
  9. data/app/controllers/doorkeeper/authorized_applications_controller.rb +22 -3
  10. data/app/controllers/doorkeeper/token_info_controller.rb +16 -4
  11. data/app/controllers/doorkeeper/tokens_controller.rb +115 -38
  12. data/app/helpers/doorkeeper/dashboard_helper.rb +10 -6
  13. data/app/views/doorkeeper/applications/_delete_form.html.erb +3 -1
  14. data/app/views/doorkeeper/applications/_form.html.erb +33 -21
  15. data/app/views/doorkeeper/applications/edit.html.erb +1 -1
  16. data/app/views/doorkeeper/applications/index.html.erb +18 -6
  17. data/app/views/doorkeeper/applications/new.html.erb +1 -1
  18. data/app/views/doorkeeper/applications/show.html.erb +40 -16
  19. data/app/views/doorkeeper/authorizations/error.html.erb +1 -1
  20. data/app/views/doorkeeper/authorizations/form_post.html.erb +15 -0
  21. data/app/views/doorkeeper/authorizations/new.html.erb +6 -0
  22. data/app/views/doorkeeper/authorized_applications/index.html.erb +0 -1
  23. data/app/views/layouts/doorkeeper/admin.html.erb +16 -14
  24. data/config/locales/en.yml +34 -7
  25. data/lib/doorkeeper/config/abstract_builder.rb +28 -0
  26. data/lib/doorkeeper/config/option.rb +82 -0
  27. data/lib/doorkeeper/config/validations.rb +53 -0
  28. data/lib/doorkeeper/config.rb +514 -167
  29. data/lib/doorkeeper/engine.rb +11 -5
  30. data/lib/doorkeeper/errors.rb +25 -16
  31. data/lib/doorkeeper/grant_flow/fallback_flow.rb +15 -0
  32. data/lib/doorkeeper/grant_flow/flow.rb +44 -0
  33. data/lib/doorkeeper/grant_flow/registry.rb +50 -0
  34. data/lib/doorkeeper/grant_flow.rb +45 -0
  35. data/lib/doorkeeper/grape/authorization_decorator.rb +6 -4
  36. data/lib/doorkeeper/grape/helpers.rb +23 -12
  37. data/lib/doorkeeper/helpers/controller.rb +51 -14
  38. data/lib/doorkeeper/models/access_grant_mixin.rb +94 -27
  39. data/lib/doorkeeper/models/access_token_mixin.rb +284 -96
  40. data/lib/doorkeeper/models/application_mixin.rb +58 -27
  41. data/lib/doorkeeper/models/concerns/accessible.rb +2 -0
  42. data/lib/doorkeeper/models/concerns/expirable.rb +12 -6
  43. data/lib/doorkeeper/models/concerns/orderable.rb +15 -0
  44. data/lib/doorkeeper/models/concerns/ownership.rb +4 -7
  45. data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
  46. data/lib/doorkeeper/models/concerns/reusable.rb +19 -0
  47. data/lib/doorkeeper/models/concerns/revocable.rb +3 -27
  48. data/lib/doorkeeper/models/concerns/scopes.rb +12 -2
  49. data/lib/doorkeeper/models/concerns/secret_storable.rb +106 -0
  50. data/lib/doorkeeper/oauth/authorization/code.rb +48 -12
  51. data/lib/doorkeeper/oauth/authorization/context.rb +17 -0
  52. data/lib/doorkeeper/oauth/authorization/token.rb +66 -28
  53. data/lib/doorkeeper/oauth/authorization/uri_builder.rb +7 -5
  54. data/lib/doorkeeper/oauth/authorization_code_request.rb +63 -10
  55. data/lib/doorkeeper/oauth/base_request.rb +35 -19
  56. data/lib/doorkeeper/oauth/base_response.rb +2 -0
  57. data/lib/doorkeeper/oauth/client/credentials.rb +9 -7
  58. data/lib/doorkeeper/oauth/client.rb +10 -11
  59. data/lib/doorkeeper/oauth/client_credentials/creator.rb +47 -4
  60. data/lib/doorkeeper/oauth/client_credentials/issuer.rb +16 -9
  61. data/lib/doorkeeper/oauth/client_credentials/validator.rb +56 -0
  62. data/lib/doorkeeper/oauth/client_credentials_request.rb +10 -11
  63. data/lib/doorkeeper/oauth/code_request.rb +8 -12
  64. data/lib/doorkeeper/oauth/code_response.rb +27 -15
  65. data/lib/doorkeeper/oauth/error.rb +5 -3
  66. data/lib/doorkeeper/oauth/error_response.rb +35 -15
  67. data/lib/doorkeeper/oauth/forbidden_token_response.rb +11 -3
  68. data/lib/doorkeeper/oauth/helpers/scope_checker.rb +23 -18
  69. data/lib/doorkeeper/oauth/helpers/unique_token.rb +20 -3
  70. data/lib/doorkeeper/oauth/helpers/uri_checker.rb +53 -3
  71. data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
  72. data/lib/doorkeeper/oauth/invalid_request_response.rb +43 -0
  73. data/lib/doorkeeper/oauth/invalid_token_response.rb +29 -5
  74. data/lib/doorkeeper/oauth/nonstandard.rb +39 -0
  75. data/lib/doorkeeper/oauth/password_access_token_request.rb +44 -10
  76. data/lib/doorkeeper/oauth/pre_authorization.rb +135 -26
  77. data/lib/doorkeeper/oauth/refresh_token_request.rb +60 -31
  78. data/lib/doorkeeper/oauth/scopes.rb +26 -12
  79. data/lib/doorkeeper/oauth/token.rb +13 -9
  80. data/lib/doorkeeper/oauth/token_introspection.rb +202 -0
  81. data/lib/doorkeeper/oauth/token_request.rb +8 -20
  82. data/lib/doorkeeper/oauth/token_response.rb +14 -10
  83. data/lib/doorkeeper/oauth.rb +13 -0
  84. data/lib/doorkeeper/orm/active_record/access_grant.rb +6 -4
  85. data/lib/doorkeeper/orm/active_record/access_token.rb +5 -42
  86. data/lib/doorkeeper/orm/active_record/application.rb +6 -20
  87. data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +69 -0
  88. data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +60 -0
  89. data/lib/doorkeeper/orm/active_record/mixins/application.rb +199 -0
  90. data/lib/doorkeeper/orm/active_record/redirect_uri_validator.rb +66 -0
  91. data/lib/doorkeeper/orm/active_record/stale_records_cleaner.rb +33 -0
  92. data/lib/doorkeeper/orm/active_record.rb +37 -8
  93. data/lib/doorkeeper/rails/helpers.rb +14 -13
  94. data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
  95. data/lib/doorkeeper/rails/routes/mapper.rb +4 -2
  96. data/lib/doorkeeper/rails/routes/mapping.rb +9 -7
  97. data/lib/doorkeeper/rails/routes/registry.rb +45 -0
  98. data/lib/doorkeeper/rails/routes.rb +41 -28
  99. data/lib/doorkeeper/rake/db.rake +40 -0
  100. data/lib/doorkeeper/rake/setup.rake +11 -0
  101. data/lib/doorkeeper/rake.rb +14 -0
  102. data/lib/doorkeeper/request/authorization_code.rb +6 -4
  103. data/lib/doorkeeper/request/client_credentials.rb +3 -3
  104. data/lib/doorkeeper/request/code.rb +1 -1
  105. data/lib/doorkeeper/request/password.rb +5 -14
  106. data/lib/doorkeeper/request/refresh_token.rb +6 -5
  107. data/lib/doorkeeper/request/strategy.rb +4 -2
  108. data/lib/doorkeeper/request/token.rb +1 -1
  109. data/lib/doorkeeper/request.rb +62 -29
  110. data/lib/doorkeeper/secret_storing/base.rb +64 -0
  111. data/lib/doorkeeper/secret_storing/bcrypt.rb +60 -0
  112. data/lib/doorkeeper/secret_storing/plain.rb +33 -0
  113. data/lib/doorkeeper/secret_storing/sha256_hash.rb +26 -0
  114. data/lib/doorkeeper/server.rb +9 -11
  115. data/lib/doorkeeper/stale_records_cleaner.rb +24 -0
  116. data/lib/doorkeeper/validations.rb +5 -2
  117. data/lib/doorkeeper/version.rb +12 -1
  118. data/lib/doorkeeper.rb +111 -62
  119. data/lib/generators/doorkeeper/application_owner_generator.rb +28 -13
  120. data/lib/generators/doorkeeper/confidential_applications_generator.rb +33 -0
  121. data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
  122. data/lib/generators/doorkeeper/install_generator.rb +19 -9
  123. data/lib/generators/doorkeeper/migration_generator.rb +27 -10
  124. data/lib/generators/doorkeeper/pkce_generator.rb +33 -0
  125. data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +31 -19
  126. data/lib/generators/doorkeeper/templates/add_confidential_to_applications.rb.erb +13 -0
  127. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +9 -0
  128. data/{spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb → lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb} +3 -1
  129. data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +8 -0
  130. data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
  131. data/lib/generators/doorkeeper/templates/initializer.rb +412 -33
  132. data/lib/generators/doorkeeper/templates/migration.rb.erb +88 -0
  133. data/lib/generators/doorkeeper/views_generator.rb +8 -4
  134. data/vendor/assets/stylesheets/doorkeeper/bootstrap.min.css +4 -5
  135. metadata +114 -276
  136. data/.coveralls.yml +0 -1
  137. data/.gitignore +0 -19
  138. data/.hound.yml +0 -13
  139. data/.rspec +0 -1
  140. data/.travis.yml +0 -26
  141. data/Appraisals +0 -14
  142. data/CONTRIBUTING.md +0 -47
  143. data/Gemfile +0 -10
  144. data/NEWS.md +0 -606
  145. data/RELEASING.md +0 -10
  146. data/Rakefile +0 -20
  147. data/app/validators/redirect_uri_validator.rb +0 -34
  148. data/doorkeeper.gemspec +0 -29
  149. data/gemfiles/rails_4_2.gemfile +0 -11
  150. data/gemfiles/rails_5_0.gemfile +0 -12
  151. data/gemfiles/rails_5_1.gemfile +0 -13
  152. data/lib/doorkeeper/oauth/client_credentials/validation.rb +0 -45
  153. data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb +0 -7
  154. data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb +0 -11
  155. data/lib/generators/doorkeeper/templates/migration.rb +0 -68
  156. data/spec/controllers/application_metal_controller.rb +0 -10
  157. data/spec/controllers/applications_controller_spec.rb +0 -58
  158. data/spec/controllers/authorizations_controller_spec.rb +0 -218
  159. data/spec/controllers/protected_resources_controller_spec.rb +0 -300
  160. data/spec/controllers/token_info_controller_spec.rb +0 -52
  161. data/spec/controllers/tokens_controller_spec.rb +0 -88
  162. data/spec/dummy/Rakefile +0 -7
  163. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  164. data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -7
  165. data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -12
  166. data/spec/dummy/app/controllers/home_controller.rb +0 -17
  167. data/spec/dummy/app/controllers/metal_controller.rb +0 -11
  168. data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -11
  169. data/spec/dummy/app/helpers/application_helper.rb +0 -5
  170. data/spec/dummy/app/models/user.rb +0 -5
  171. data/spec/dummy/app/views/home/index.html.erb +0 -0
  172. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  173. data/spec/dummy/config/application.rb +0 -23
  174. data/spec/dummy/config/boot.rb +0 -9
  175. data/spec/dummy/config/database.yml +0 -15
  176. data/spec/dummy/config/environment.rb +0 -5
  177. data/spec/dummy/config/environments/development.rb +0 -29
  178. data/spec/dummy/config/environments/production.rb +0 -62
  179. data/spec/dummy/config/environments/test.rb +0 -44
  180. data/spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb +0 -6
  181. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  182. data/spec/dummy/config/initializers/doorkeeper.rb +0 -96
  183. data/spec/dummy/config/initializers/secret_token.rb +0 -9
  184. data/spec/dummy/config/initializers/session_store.rb +0 -8
  185. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  186. data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
  187. data/spec/dummy/config/routes.rb +0 -52
  188. data/spec/dummy/config.ru +0 -4
  189. data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -9
  190. data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -5
  191. data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -60
  192. data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -7
  193. data/spec/dummy/db/schema.rb +0 -67
  194. data/spec/dummy/public/404.html +0 -26
  195. data/spec/dummy/public/422.html +0 -26
  196. data/spec/dummy/public/500.html +0 -26
  197. data/spec/dummy/public/favicon.ico +0 -0
  198. data/spec/dummy/script/rails +0 -6
  199. data/spec/factories.rb +0 -28
  200. data/spec/generators/application_owner_generator_spec.rb +0 -22
  201. data/spec/generators/install_generator_spec.rb +0 -31
  202. data/spec/generators/migration_generator_spec.rb +0 -20
  203. data/spec/generators/templates/routes.rb +0 -3
  204. data/spec/generators/views_generator_spec.rb +0 -27
  205. data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -24
  206. data/spec/lib/config_spec.rb +0 -334
  207. data/spec/lib/doorkeeper_spec.rb +0 -150
  208. data/spec/lib/models/expirable_spec.rb +0 -50
  209. data/spec/lib/models/revocable_spec.rb +0 -59
  210. data/spec/lib/models/scopes_spec.rb +0 -43
  211. data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -41
  212. data/spec/lib/oauth/authorization_code_request_spec.rb +0 -80
  213. data/spec/lib/oauth/base_request_spec.rb +0 -160
  214. data/spec/lib/oauth/base_response_spec.rb +0 -45
  215. data/spec/lib/oauth/client/credentials_spec.rb +0 -88
  216. data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -44
  217. data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -86
  218. data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -54
  219. data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
  220. data/spec/lib/oauth/client_credentials_request_spec.rb +0 -104
  221. data/spec/lib/oauth/client_spec.rb +0 -39
  222. data/spec/lib/oauth/code_request_spec.rb +0 -45
  223. data/spec/lib/oauth/code_response_spec.rb +0 -34
  224. data/spec/lib/oauth/error_response_spec.rb +0 -61
  225. data/spec/lib/oauth/error_spec.rb +0 -23
  226. data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -23
  227. data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -64
  228. data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -20
  229. data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -104
  230. data/spec/lib/oauth/invalid_token_response_spec.rb +0 -56
  231. data/spec/lib/oauth/password_access_token_request_spec.rb +0 -90
  232. data/spec/lib/oauth/pre_authorization_spec.rb +0 -155
  233. data/spec/lib/oauth/refresh_token_request_spec.rb +0 -154
  234. data/spec/lib/oauth/scopes_spec.rb +0 -122
  235. data/spec/lib/oauth/token_request_spec.rb +0 -98
  236. data/spec/lib/oauth/token_response_spec.rb +0 -85
  237. data/spec/lib/oauth/token_spec.rb +0 -116
  238. data/spec/lib/request/strategy_spec.rb +0 -53
  239. data/spec/lib/server_spec.rb +0 -49
  240. data/spec/models/doorkeeper/access_grant_spec.rb +0 -36
  241. data/spec/models/doorkeeper/access_token_spec.rb +0 -394
  242. data/spec/models/doorkeeper/application_spec.rb +0 -179
  243. data/spec/requests/applications/applications_request_spec.rb +0 -94
  244. data/spec/requests/applications/authorized_applications_spec.rb +0 -30
  245. data/spec/requests/endpoints/authorization_spec.rb +0 -71
  246. data/spec/requests/endpoints/token_spec.rb +0 -64
  247. data/spec/requests/flows/authorization_code_errors_spec.rb +0 -76
  248. data/spec/requests/flows/authorization_code_spec.rb +0 -148
  249. data/spec/requests/flows/client_credentials_spec.rb +0 -58
  250. data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -32
  251. data/spec/requests/flows/implicit_grant_spec.rb +0 -61
  252. data/spec/requests/flows/password_spec.rb +0 -115
  253. data/spec/requests/flows/refresh_token_spec.rb +0 -174
  254. data/spec/requests/flows/revoke_token_spec.rb +0 -157
  255. data/spec/requests/flows/skip_authorization_spec.rb +0 -59
  256. data/spec/requests/protected_resources/metal_spec.rb +0 -14
  257. data/spec/requests/protected_resources/private_api_spec.rb +0 -81
  258. data/spec/routing/custom_controller_routes_spec.rb +0 -71
  259. data/spec/routing/default_routes_spec.rb +0 -35
  260. data/spec/routing/scoped_routes_spec.rb +0 -31
  261. data/spec/spec_helper.rb +0 -4
  262. data/spec/spec_helper_integration.rb +0 -63
  263. data/spec/support/dependencies/factory_girl.rb +0 -2
  264. data/spec/support/helpers/access_token_request_helper.rb +0 -11
  265. data/spec/support/helpers/authorization_request_helper.rb +0 -41
  266. data/spec/support/helpers/config_helper.rb +0 -9
  267. data/spec/support/helpers/model_helper.rb +0 -67
  268. data/spec/support/helpers/request_spec_helper.rb +0 -84
  269. data/spec/support/helpers/url_helper.rb +0 -55
  270. data/spec/support/http_method_shim.rb +0 -38
  271. data/spec/support/orm/active_record.rb +0 -3
  272. data/spec/support/shared/controllers_shared_context.rb +0 -69
  273. data/spec/support/shared/models_shared_examples.rb +0 -52
  274. data/spec/validators/redirect_uri_validator_spec.rb +0 -78
metadata CHANGED
@@ -1,16 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doorkeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.6
4
+ version: 5.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felipe Elias Philipp
8
8
  - Tute Costa
9
9
  - Jon Moss
10
+ - Nikita Bulai
10
11
  autorequire:
11
12
  bindir: bin
12
13
  cert_chain: []
13
- date: 2017-05-26 00:00:00.000000000 Z
14
+ date: 2021-10-05 00:00:00.000000000 Z
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: railties
@@ -18,14 +19,28 @@ dependencies:
18
19
  requirements:
19
20
  - - ">="
20
21
  - !ruby/object:Gem::Version
21
- version: '4.2'
22
+ version: '5'
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
26
  requirements:
26
27
  - - ">="
27
28
  - !ruby/object:Gem::Version
28
- version: '4.2'
29
+ version: '5'
30
+ - !ruby/object:Gem::Dependency
31
+ name: appraisal
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ type: :development
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
29
44
  - !ruby/object:Gem::Dependency
30
45
  name: capybara
31
46
  requirement: !ruby/object:Gem::Requirement
@@ -54,34 +69,48 @@ dependencies:
54
69
  - - ">="
55
70
  - !ruby/object:Gem::Version
56
71
  version: '0'
72
+ - !ruby/object:Gem::Dependency
73
+ name: danger
74
+ requirement: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - "~>"
77
+ - !ruby/object:Gem::Version
78
+ version: '8.0'
79
+ type: :development
80
+ prerelease: false
81
+ version_requirements: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - "~>"
84
+ - !ruby/object:Gem::Version
85
+ version: '8.0'
57
86
  - !ruby/object:Gem::Dependency
58
87
  name: database_cleaner
59
88
  requirement: !ruby/object:Gem::Requirement
60
89
  requirements:
61
90
  - - "~>"
62
91
  - !ruby/object:Gem::Version
63
- version: 1.5.3
92
+ version: '2.0'
64
93
  type: :development
65
94
  prerelease: false
66
95
  version_requirements: !ruby/object:Gem::Requirement
67
96
  requirements:
68
97
  - - "~>"
69
98
  - !ruby/object:Gem::Version
70
- version: 1.5.3
99
+ version: '2.0'
71
100
  - !ruby/object:Gem::Dependency
72
- name: factory_girl
101
+ name: factory_bot
73
102
  requirement: !ruby/object:Gem::Requirement
74
103
  requirements:
75
104
  - - "~>"
76
105
  - !ruby/object:Gem::Version
77
- version: 4.7.0
106
+ version: '6.0'
78
107
  type: :development
79
108
  prerelease: false
80
109
  version_requirements: !ruby/object:Gem::Requirement
81
110
  requirements:
82
111
  - - "~>"
83
112
  - !ruby/object:Gem::Version
84
- version: 4.7.0
113
+ version: '6.0'
85
114
  - !ruby/object:Gem::Dependency
86
115
  name: generator_spec
87
116
  requirement: !ruby/object:Gem::Requirement
@@ -96,6 +125,20 @@ dependencies:
96
125
  - - "~>"
97
126
  - !ruby/object:Gem::Version
98
127
  version: 0.9.3
128
+ - !ruby/object:Gem::Dependency
129
+ name: grape
130
+ requirement: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '0'
135
+ type: :development
136
+ prerelease: false
137
+ version_requirements: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
99
142
  - !ruby/object:Gem::Dependency
100
143
  name: rake
101
144
  requirement: !ruby/object:Gem::Requirement
@@ -126,24 +169,14 @@ dependencies:
126
169
  version: '0'
127
170
  description: Doorkeeper is an OAuth 2 provider for Rails and Grape.
128
171
  email:
129
- - me@jonathanmoss.me
172
+ - bulaj.nikita@gmail.com
130
173
  executables: []
131
174
  extensions: []
132
175
  extra_rdoc_files: []
133
176
  files:
134
- - ".coveralls.yml"
135
- - ".gitignore"
136
- - ".hound.yml"
137
- - ".rspec"
138
- - ".travis.yml"
139
- - Appraisals
140
- - CONTRIBUTING.md
141
- - Gemfile
177
+ - CHANGELOG.md
142
178
  - MIT-LICENSE
143
- - NEWS.md
144
179
  - README.md
145
- - RELEASING.md
146
- - Rakefile
147
180
  - app/assets/stylesheets/doorkeeper/admin/application.css
148
181
  - app/assets/stylesheets/doorkeeper/application.css
149
182
  - app/controllers/doorkeeper/application_controller.rb
@@ -154,7 +187,6 @@ files:
154
187
  - app/controllers/doorkeeper/token_info_controller.rb
155
188
  - app/controllers/doorkeeper/tokens_controller.rb
156
189
  - app/helpers/doorkeeper/dashboard_helper.rb
157
- - app/validators/redirect_uri_validator.rb
158
190
  - app/views/doorkeeper/applications/_delete_form.html.erb
159
191
  - app/views/doorkeeper/applications/_form.html.erb
160
192
  - app/views/doorkeeper/applications/edit.html.erb
@@ -162,6 +194,7 @@ files:
162
194
  - app/views/doorkeeper/applications/new.html.erb
163
195
  - app/views/doorkeeper/applications/show.html.erb
164
196
  - app/views/doorkeeper/authorizations/error.html.erb
197
+ - app/views/doorkeeper/authorizations/form_post.html.erb
165
198
  - app/views/doorkeeper/authorizations/new.html.erb
166
199
  - app/views/doorkeeper/authorizations/show.html.erb
167
200
  - app/views/doorkeeper/authorized_applications/_delete_form.html.erb
@@ -169,14 +202,17 @@ files:
169
202
  - app/views/layouts/doorkeeper/admin.html.erb
170
203
  - app/views/layouts/doorkeeper/application.html.erb
171
204
  - config/locales/en.yml
172
- - doorkeeper.gemspec
173
- - gemfiles/rails_4_2.gemfile
174
- - gemfiles/rails_5_0.gemfile
175
- - gemfiles/rails_5_1.gemfile
176
205
  - lib/doorkeeper.rb
177
206
  - lib/doorkeeper/config.rb
207
+ - lib/doorkeeper/config/abstract_builder.rb
208
+ - lib/doorkeeper/config/option.rb
209
+ - lib/doorkeeper/config/validations.rb
178
210
  - lib/doorkeeper/engine.rb
179
211
  - lib/doorkeeper/errors.rb
212
+ - lib/doorkeeper/grant_flow.rb
213
+ - lib/doorkeeper/grant_flow/fallback_flow.rb
214
+ - lib/doorkeeper/grant_flow/flow.rb
215
+ - lib/doorkeeper/grant_flow/registry.rb
180
216
  - lib/doorkeeper/grape/authorization_decorator.rb
181
217
  - lib/doorkeeper/grape/helpers.rb
182
218
  - lib/doorkeeper/helpers/controller.rb
@@ -185,10 +221,16 @@ files:
185
221
  - lib/doorkeeper/models/application_mixin.rb
186
222
  - lib/doorkeeper/models/concerns/accessible.rb
187
223
  - lib/doorkeeper/models/concerns/expirable.rb
224
+ - lib/doorkeeper/models/concerns/orderable.rb
188
225
  - lib/doorkeeper/models/concerns/ownership.rb
226
+ - lib/doorkeeper/models/concerns/resource_ownerable.rb
227
+ - lib/doorkeeper/models/concerns/reusable.rb
189
228
  - lib/doorkeeper/models/concerns/revocable.rb
190
229
  - lib/doorkeeper/models/concerns/scopes.rb
230
+ - lib/doorkeeper/models/concerns/secret_storable.rb
231
+ - lib/doorkeeper/oauth.rb
191
232
  - lib/doorkeeper/oauth/authorization/code.rb
233
+ - lib/doorkeeper/oauth/authorization/context.rb
192
234
  - lib/doorkeeper/oauth/authorization/token.rb
193
235
  - lib/doorkeeper/oauth/authorization/uri_builder.rb
194
236
  - lib/doorkeeper/oauth/authorization_code_request.rb
@@ -198,7 +240,7 @@ files:
198
240
  - lib/doorkeeper/oauth/client/credentials.rb
199
241
  - lib/doorkeeper/oauth/client_credentials/creator.rb
200
242
  - lib/doorkeeper/oauth/client_credentials/issuer.rb
201
- - lib/doorkeeper/oauth/client_credentials/validation.rb
243
+ - lib/doorkeeper/oauth/client_credentials/validator.rb
202
244
  - lib/doorkeeper/oauth/client_credentials_request.rb
203
245
  - lib/doorkeeper/oauth/code_request.rb
204
246
  - lib/doorkeeper/oauth/code_response.rb
@@ -208,22 +250,36 @@ files:
208
250
  - lib/doorkeeper/oauth/helpers/scope_checker.rb
209
251
  - lib/doorkeeper/oauth/helpers/unique_token.rb
210
252
  - lib/doorkeeper/oauth/helpers/uri_checker.rb
253
+ - lib/doorkeeper/oauth/hooks/context.rb
254
+ - lib/doorkeeper/oauth/invalid_request_response.rb
211
255
  - lib/doorkeeper/oauth/invalid_token_response.rb
256
+ - lib/doorkeeper/oauth/nonstandard.rb
212
257
  - lib/doorkeeper/oauth/password_access_token_request.rb
213
258
  - lib/doorkeeper/oauth/pre_authorization.rb
214
259
  - lib/doorkeeper/oauth/refresh_token_request.rb
215
260
  - lib/doorkeeper/oauth/scopes.rb
216
261
  - lib/doorkeeper/oauth/token.rb
262
+ - lib/doorkeeper/oauth/token_introspection.rb
217
263
  - lib/doorkeeper/oauth/token_request.rb
218
264
  - lib/doorkeeper/oauth/token_response.rb
219
265
  - lib/doorkeeper/orm/active_record.rb
220
266
  - lib/doorkeeper/orm/active_record/access_grant.rb
221
267
  - lib/doorkeeper/orm/active_record/access_token.rb
222
268
  - lib/doorkeeper/orm/active_record/application.rb
269
+ - lib/doorkeeper/orm/active_record/mixins/access_grant.rb
270
+ - lib/doorkeeper/orm/active_record/mixins/access_token.rb
271
+ - lib/doorkeeper/orm/active_record/mixins/application.rb
272
+ - lib/doorkeeper/orm/active_record/redirect_uri_validator.rb
273
+ - lib/doorkeeper/orm/active_record/stale_records_cleaner.rb
223
274
  - lib/doorkeeper/rails/helpers.rb
224
275
  - lib/doorkeeper/rails/routes.rb
276
+ - lib/doorkeeper/rails/routes/abstract_router.rb
225
277
  - lib/doorkeeper/rails/routes/mapper.rb
226
278
  - lib/doorkeeper/rails/routes/mapping.rb
279
+ - lib/doorkeeper/rails/routes/registry.rb
280
+ - lib/doorkeeper/rake.rb
281
+ - lib/doorkeeper/rake/db.rake
282
+ - lib/doorkeeper/rake/setup.rake
227
283
  - lib/doorkeeper/request.rb
228
284
  - lib/doorkeeper/request/authorization_code.rb
229
285
  - lib/doorkeeper/request/client_credentials.rb
@@ -232,145 +288,48 @@ files:
232
288
  - lib/doorkeeper/request/refresh_token.rb
233
289
  - lib/doorkeeper/request/strategy.rb
234
290
  - lib/doorkeeper/request/token.rb
291
+ - lib/doorkeeper/secret_storing/base.rb
292
+ - lib/doorkeeper/secret_storing/bcrypt.rb
293
+ - lib/doorkeeper/secret_storing/plain.rb
294
+ - lib/doorkeeper/secret_storing/sha256_hash.rb
235
295
  - lib/doorkeeper/server.rb
296
+ - lib/doorkeeper/stale_records_cleaner.rb
236
297
  - lib/doorkeeper/validations.rb
237
298
  - lib/doorkeeper/version.rb
238
299
  - lib/generators/doorkeeper/application_owner_generator.rb
300
+ - lib/generators/doorkeeper/confidential_applications_generator.rb
301
+ - lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb
239
302
  - lib/generators/doorkeeper/install_generator.rb
240
303
  - lib/generators/doorkeeper/migration_generator.rb
304
+ - lib/generators/doorkeeper/pkce_generator.rb
241
305
  - lib/generators/doorkeeper/previous_refresh_token_generator.rb
242
306
  - lib/generators/doorkeeper/templates/README
243
- - lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb
244
- - lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb
307
+ - lib/generators/doorkeeper/templates/add_confidential_to_applications.rb.erb
308
+ - lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb
309
+ - lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb
310
+ - lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb
311
+ - lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb
245
312
  - lib/generators/doorkeeper/templates/initializer.rb
246
- - lib/generators/doorkeeper/templates/migration.rb
313
+ - lib/generators/doorkeeper/templates/migration.rb.erb
247
314
  - lib/generators/doorkeeper/views_generator.rb
248
- - spec/controllers/application_metal_controller.rb
249
- - spec/controllers/applications_controller_spec.rb
250
- - spec/controllers/authorizations_controller_spec.rb
251
- - spec/controllers/protected_resources_controller_spec.rb
252
- - spec/controllers/token_info_controller_spec.rb
253
- - spec/controllers/tokens_controller_spec.rb
254
- - spec/dummy/Rakefile
255
- - spec/dummy/app/controllers/application_controller.rb
256
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
257
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
258
- - spec/dummy/app/controllers/home_controller.rb
259
- - spec/dummy/app/controllers/metal_controller.rb
260
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
261
- - spec/dummy/app/helpers/application_helper.rb
262
- - spec/dummy/app/models/user.rb
263
- - spec/dummy/app/views/home/index.html.erb
264
- - spec/dummy/app/views/layouts/application.html.erb
265
- - spec/dummy/config.ru
266
- - spec/dummy/config/application.rb
267
- - spec/dummy/config/boot.rb
268
- - spec/dummy/config/database.yml
269
- - spec/dummy/config/environment.rb
270
- - spec/dummy/config/environments/development.rb
271
- - spec/dummy/config/environments/production.rb
272
- - spec/dummy/config/environments/test.rb
273
- - spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb
274
- - spec/dummy/config/initializers/backtrace_silencers.rb
275
- - spec/dummy/config/initializers/doorkeeper.rb
276
- - spec/dummy/config/initializers/secret_token.rb
277
- - spec/dummy/config/initializers/session_store.rb
278
- - spec/dummy/config/initializers/wrap_parameters.rb
279
- - spec/dummy/config/locales/doorkeeper.en.yml
280
- - spec/dummy/config/routes.rb
281
- - spec/dummy/db/migrate/20111122132257_create_users.rb
282
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
283
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
284
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
285
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
286
- - spec/dummy/db/schema.rb
287
- - spec/dummy/public/404.html
288
- - spec/dummy/public/422.html
289
- - spec/dummy/public/500.html
290
- - spec/dummy/public/favicon.ico
291
- - spec/dummy/script/rails
292
- - spec/factories.rb
293
- - spec/generators/application_owner_generator_spec.rb
294
- - spec/generators/install_generator_spec.rb
295
- - spec/generators/migration_generator_spec.rb
296
- - spec/generators/templates/routes.rb
297
- - spec/generators/views_generator_spec.rb
298
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
299
- - spec/lib/config_spec.rb
300
- - spec/lib/doorkeeper_spec.rb
301
- - spec/lib/models/expirable_spec.rb
302
- - spec/lib/models/revocable_spec.rb
303
- - spec/lib/models/scopes_spec.rb
304
- - spec/lib/oauth/authorization/uri_builder_spec.rb
305
- - spec/lib/oauth/authorization_code_request_spec.rb
306
- - spec/lib/oauth/base_request_spec.rb
307
- - spec/lib/oauth/base_response_spec.rb
308
- - spec/lib/oauth/client/credentials_spec.rb
309
- - spec/lib/oauth/client_credentials/creator_spec.rb
310
- - spec/lib/oauth/client_credentials/issuer_spec.rb
311
- - spec/lib/oauth/client_credentials/validation_spec.rb
312
- - spec/lib/oauth/client_credentials_integration_spec.rb
313
- - spec/lib/oauth/client_credentials_request_spec.rb
314
- - spec/lib/oauth/client_spec.rb
315
- - spec/lib/oauth/code_request_spec.rb
316
- - spec/lib/oauth/code_response_spec.rb
317
- - spec/lib/oauth/error_response_spec.rb
318
- - spec/lib/oauth/error_spec.rb
319
- - spec/lib/oauth/forbidden_token_response_spec.rb
320
- - spec/lib/oauth/helpers/scope_checker_spec.rb
321
- - spec/lib/oauth/helpers/unique_token_spec.rb
322
- - spec/lib/oauth/helpers/uri_checker_spec.rb
323
- - spec/lib/oauth/invalid_token_response_spec.rb
324
- - spec/lib/oauth/password_access_token_request_spec.rb
325
- - spec/lib/oauth/pre_authorization_spec.rb
326
- - spec/lib/oauth/refresh_token_request_spec.rb
327
- - spec/lib/oauth/scopes_spec.rb
328
- - spec/lib/oauth/token_request_spec.rb
329
- - spec/lib/oauth/token_response_spec.rb
330
- - spec/lib/oauth/token_spec.rb
331
- - spec/lib/request/strategy_spec.rb
332
- - spec/lib/server_spec.rb
333
- - spec/models/doorkeeper/access_grant_spec.rb
334
- - spec/models/doorkeeper/access_token_spec.rb
335
- - spec/models/doorkeeper/application_spec.rb
336
- - spec/requests/applications/applications_request_spec.rb
337
- - spec/requests/applications/authorized_applications_spec.rb
338
- - spec/requests/endpoints/authorization_spec.rb
339
- - spec/requests/endpoints/token_spec.rb
340
- - spec/requests/flows/authorization_code_errors_spec.rb
341
- - spec/requests/flows/authorization_code_spec.rb
342
- - spec/requests/flows/client_credentials_spec.rb
343
- - spec/requests/flows/implicit_grant_errors_spec.rb
344
- - spec/requests/flows/implicit_grant_spec.rb
345
- - spec/requests/flows/password_spec.rb
346
- - spec/requests/flows/refresh_token_spec.rb
347
- - spec/requests/flows/revoke_token_spec.rb
348
- - spec/requests/flows/skip_authorization_spec.rb
349
- - spec/requests/protected_resources/metal_spec.rb
350
- - spec/requests/protected_resources/private_api_spec.rb
351
- - spec/routing/custom_controller_routes_spec.rb
352
- - spec/routing/default_routes_spec.rb
353
- - spec/routing/scoped_routes_spec.rb
354
- - spec/spec_helper.rb
355
- - spec/spec_helper_integration.rb
356
- - spec/support/dependencies/factory_girl.rb
357
- - spec/support/helpers/access_token_request_helper.rb
358
- - spec/support/helpers/authorization_request_helper.rb
359
- - spec/support/helpers/config_helper.rb
360
- - spec/support/helpers/model_helper.rb
361
- - spec/support/helpers/request_spec_helper.rb
362
- - spec/support/helpers/url_helper.rb
363
- - spec/support/http_method_shim.rb
364
- - spec/support/orm/active_record.rb
365
- - spec/support/shared/controllers_shared_context.rb
366
- - spec/support/shared/models_shared_examples.rb
367
- - spec/validators/redirect_uri_validator_spec.rb
368
315
  - vendor/assets/stylesheets/doorkeeper/bootstrap.min.css
369
316
  homepage: https://github.com/doorkeeper-gem/doorkeeper
370
317
  licenses:
371
318
  - MIT
372
- metadata: {}
373
- post_install_message:
319
+ metadata:
320
+ homepage_uri: https://github.com/doorkeeper-gem/doorkeeper
321
+ changelog_uri: https://github.com/doorkeeper-gem/doorkeeper/blob/main/CHANGELOG.md
322
+ source_code_uri: https://github.com/doorkeeper-gem/doorkeeper
323
+ bug_tracker_uri: https://github.com/doorkeeper-gem/doorkeeper/issues
324
+ documentation_uri: https://doorkeeper.gitbook.io/guides/
325
+ post_install_message: "Starting from 5.5.0 RC1 Doorkeeper requires client authentication
326
+ for Resource Owner Password Grant\nas stated in the OAuth RFC. You have to create
327
+ a new OAuth client (Doorkeeper::Application) if you didn't\nhave it before and use
328
+ client credentials in HTTP Basic auth if you previously used this grant flow without\nclient
329
+ authentication. \n\nTo opt out of this you could set the \"skip_client_authentication_for_password_grant\"
330
+ configuration option\nto \"true\", but note that this is in violation of the OAuth
331
+ spec and represents a security risk.\n\nRead https://github.com/doorkeeper-gem/doorkeeper/issues/561#issuecomment-612857163
332
+ for more details."
374
333
  rdoc_options: []
375
334
  require_paths:
376
335
  - lib
@@ -378,136 +337,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
378
337
  requirements:
379
338
  - - ">="
380
339
  - !ruby/object:Gem::Version
381
- version: '2.1'
340
+ version: '2.5'
382
341
  required_rubygems_version: !ruby/object:Gem::Requirement
383
342
  requirements:
384
343
  - - ">="
385
344
  - !ruby/object:Gem::Version
386
345
  version: '0'
387
346
  requirements: []
388
- rubyforge_project:
389
- rubygems_version: 2.6.11
347
+ rubygems_version: 3.1.2
390
348
  signing_key:
391
349
  specification_version: 4
392
350
  summary: OAuth 2 provider for Rails and Grape
393
- test_files:
394
- - spec/controllers/application_metal_controller.rb
395
- - spec/controllers/applications_controller_spec.rb
396
- - spec/controllers/authorizations_controller_spec.rb
397
- - spec/controllers/protected_resources_controller_spec.rb
398
- - spec/controllers/token_info_controller_spec.rb
399
- - spec/controllers/tokens_controller_spec.rb
400
- - spec/dummy/Rakefile
401
- - spec/dummy/app/controllers/application_controller.rb
402
- - spec/dummy/app/controllers/custom_authorizations_controller.rb
403
- - spec/dummy/app/controllers/full_protected_resources_controller.rb
404
- - spec/dummy/app/controllers/home_controller.rb
405
- - spec/dummy/app/controllers/metal_controller.rb
406
- - spec/dummy/app/controllers/semi_protected_resources_controller.rb
407
- - spec/dummy/app/helpers/application_helper.rb
408
- - spec/dummy/app/models/user.rb
409
- - spec/dummy/app/views/home/index.html.erb
410
- - spec/dummy/app/views/layouts/application.html.erb
411
- - spec/dummy/config.ru
412
- - spec/dummy/config/application.rb
413
- - spec/dummy/config/boot.rb
414
- - spec/dummy/config/database.yml
415
- - spec/dummy/config/environment.rb
416
- - spec/dummy/config/environments/development.rb
417
- - spec/dummy/config/environments/production.rb
418
- - spec/dummy/config/environments/test.rb
419
- - spec/dummy/config/initializers/active_record_belongs_to_required_by_default.rb
420
- - spec/dummy/config/initializers/backtrace_silencers.rb
421
- - spec/dummy/config/initializers/doorkeeper.rb
422
- - spec/dummy/config/initializers/secret_token.rb
423
- - spec/dummy/config/initializers/session_store.rb
424
- - spec/dummy/config/initializers/wrap_parameters.rb
425
- - spec/dummy/config/locales/doorkeeper.en.yml
426
- - spec/dummy/config/routes.rb
427
- - spec/dummy/db/migrate/20111122132257_create_users.rb
428
- - spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
429
- - spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
430
- - spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
431
- - spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
432
- - spec/dummy/db/schema.rb
433
- - spec/dummy/public/404.html
434
- - spec/dummy/public/422.html
435
- - spec/dummy/public/500.html
436
- - spec/dummy/public/favicon.ico
437
- - spec/dummy/script/rails
438
- - spec/factories.rb
439
- - spec/generators/application_owner_generator_spec.rb
440
- - spec/generators/install_generator_spec.rb
441
- - spec/generators/migration_generator_spec.rb
442
- - spec/generators/templates/routes.rb
443
- - spec/generators/views_generator_spec.rb
444
- - spec/helpers/doorkeeper/dashboard_helper_spec.rb
445
- - spec/lib/config_spec.rb
446
- - spec/lib/doorkeeper_spec.rb
447
- - spec/lib/models/expirable_spec.rb
448
- - spec/lib/models/revocable_spec.rb
449
- - spec/lib/models/scopes_spec.rb
450
- - spec/lib/oauth/authorization/uri_builder_spec.rb
451
- - spec/lib/oauth/authorization_code_request_spec.rb
452
- - spec/lib/oauth/base_request_spec.rb
453
- - spec/lib/oauth/base_response_spec.rb
454
- - spec/lib/oauth/client/credentials_spec.rb
455
- - spec/lib/oauth/client_credentials/creator_spec.rb
456
- - spec/lib/oauth/client_credentials/issuer_spec.rb
457
- - spec/lib/oauth/client_credentials/validation_spec.rb
458
- - spec/lib/oauth/client_credentials_integration_spec.rb
459
- - spec/lib/oauth/client_credentials_request_spec.rb
460
- - spec/lib/oauth/client_spec.rb
461
- - spec/lib/oauth/code_request_spec.rb
462
- - spec/lib/oauth/code_response_spec.rb
463
- - spec/lib/oauth/error_response_spec.rb
464
- - spec/lib/oauth/error_spec.rb
465
- - spec/lib/oauth/forbidden_token_response_spec.rb
466
- - spec/lib/oauth/helpers/scope_checker_spec.rb
467
- - spec/lib/oauth/helpers/unique_token_spec.rb
468
- - spec/lib/oauth/helpers/uri_checker_spec.rb
469
- - spec/lib/oauth/invalid_token_response_spec.rb
470
- - spec/lib/oauth/password_access_token_request_spec.rb
471
- - spec/lib/oauth/pre_authorization_spec.rb
472
- - spec/lib/oauth/refresh_token_request_spec.rb
473
- - spec/lib/oauth/scopes_spec.rb
474
- - spec/lib/oauth/token_request_spec.rb
475
- - spec/lib/oauth/token_response_spec.rb
476
- - spec/lib/oauth/token_spec.rb
477
- - spec/lib/request/strategy_spec.rb
478
- - spec/lib/server_spec.rb
479
- - spec/models/doorkeeper/access_grant_spec.rb
480
- - spec/models/doorkeeper/access_token_spec.rb
481
- - spec/models/doorkeeper/application_spec.rb
482
- - spec/requests/applications/applications_request_spec.rb
483
- - spec/requests/applications/authorized_applications_spec.rb
484
- - spec/requests/endpoints/authorization_spec.rb
485
- - spec/requests/endpoints/token_spec.rb
486
- - spec/requests/flows/authorization_code_errors_spec.rb
487
- - spec/requests/flows/authorization_code_spec.rb
488
- - spec/requests/flows/client_credentials_spec.rb
489
- - spec/requests/flows/implicit_grant_errors_spec.rb
490
- - spec/requests/flows/implicit_grant_spec.rb
491
- - spec/requests/flows/password_spec.rb
492
- - spec/requests/flows/refresh_token_spec.rb
493
- - spec/requests/flows/revoke_token_spec.rb
494
- - spec/requests/flows/skip_authorization_spec.rb
495
- - spec/requests/protected_resources/metal_spec.rb
496
- - spec/requests/protected_resources/private_api_spec.rb
497
- - spec/routing/custom_controller_routes_spec.rb
498
- - spec/routing/default_routes_spec.rb
499
- - spec/routing/scoped_routes_spec.rb
500
- - spec/spec_helper.rb
501
- - spec/spec_helper_integration.rb
502
- - spec/support/dependencies/factory_girl.rb
503
- - spec/support/helpers/access_token_request_helper.rb
504
- - spec/support/helpers/authorization_request_helper.rb
505
- - spec/support/helpers/config_helper.rb
506
- - spec/support/helpers/model_helper.rb
507
- - spec/support/helpers/request_spec_helper.rb
508
- - spec/support/helpers/url_helper.rb
509
- - spec/support/http_method_shim.rb
510
- - spec/support/orm/active_record.rb
511
- - spec/support/shared/controllers_shared_context.rb
512
- - spec/support/shared/models_shared_examples.rb
513
- - spec/validators/redirect_uri_validator_spec.rb
351
+ test_files: []
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: travis-ci
data/.gitignore DELETED
@@ -1,19 +0,0 @@
1
- .bundle/
2
- .rbx
3
- *.rbc
4
- log/*.log
5
- pkg/
6
- spec/dummy/db/*.sqlite3
7
- spec/dummy/log/*.log
8
- spec/dummy/tmp/
9
- Gemfile.lock
10
- gemfiles/*.lock
11
- spec/generators/tmp
12
- .rvmrc
13
- *.swp
14
- .idea
15
- /.yardoc/
16
- /_yardoc/
17
- /doc/
18
- /rdoc/
19
- coverage
data/.hound.yml DELETED
@@ -1,13 +0,0 @@
1
- AllCops:
2
- Exclude:
3
- - "spec/dummy/db/*"
4
-
5
- LineLength:
6
- Exclude:
7
- - spec/**/*
8
-
9
- StringLiterals:
10
- Enabled: false
11
-
12
- TrailingBlankLines:
13
- Enabled: true
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --colour
data/.travis.yml DELETED
@@ -1,26 +0,0 @@
1
- cache: bundler
2
- language: ruby
3
- sudo: false
4
-
5
- rvm:
6
- - 2.1
7
- - 2.2.6
8
- - 2.3.3
9
- - 2.4.0
10
-
11
- before_install:
12
- - gem install bundler -v '~> 1.10'
13
-
14
- gemfile:
15
- - gemfiles/rails_4_2.gemfile
16
- - gemfiles/rails_5_0.gemfile
17
- - gemfiles/rails_5_1.gemfile
18
-
19
- matrix:
20
- exclude:
21
- - gemfile: gemfiles/rails_5_0.gemfile
22
- rvm: 2.1
23
- - gemfile: gemfiles/rails_5_1.gemfile
24
- rvm: 2.1
25
- allowed_failures:
26
- - gemfile: gemfiles/rails_5_1.gemfile
data/Appraisals DELETED
@@ -1,14 +0,0 @@
1
- appraise "rails-4-2" do
2
- gem "rails", "~> 4.2.0"
3
- end
4
-
5
- appraise "rails-5-0" do
6
- gem "rails", "~> 5.0.0"
7
- gem "rspec-rails", "~> 3.5"
8
- end
9
-
10
- appraise "rails-5-1" do
11
- gem "rails", github: "rails/rails"
12
- gem "arel", github: "rails/arel"
13
- gem "rspec-rails", "~> 3.5"
14
- end