doorkeeper 5.1.0 → 5.5.1
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.
- checksums.yaml +4 -4
- data/{NEWS.md → CHANGELOG.md} +242 -25
- data/README.md +21 -11
- data/app/controllers/doorkeeper/application_controller.rb +3 -2
- data/app/controllers/doorkeeper/application_metal_controller.rb +3 -2
- data/app/controllers/doorkeeper/applications_controller.rb +8 -7
- data/app/controllers/doorkeeper/authorizations_controller.rb +56 -19
- data/app/controllers/doorkeeper/authorized_applications_controller.rb +6 -6
- data/app/controllers/doorkeeper/token_info_controller.rb +12 -2
- data/app/controllers/doorkeeper/tokens_controller.rb +93 -25
- data/app/views/doorkeeper/applications/_form.html.erb +1 -7
- data/app/views/doorkeeper/applications/show.html.erb +35 -14
- data/app/views/doorkeeper/authorizations/form_post.html.erb +11 -0
- data/config/locales/en.yml +13 -3
- data/lib/doorkeeper/config/abstract_builder.rb +28 -0
- data/lib/doorkeeper/config/option.rb +20 -2
- data/lib/doorkeeper/config/validations.rb +53 -0
- data/lib/doorkeeper/config.rb +295 -121
- data/lib/doorkeeper/engine.rb +1 -1
- data/lib/doorkeeper/errors.rb +13 -18
- data/lib/doorkeeper/grant_flow/fallback_flow.rb +15 -0
- data/lib/doorkeeper/grant_flow/flow.rb +44 -0
- data/lib/doorkeeper/grant_flow/registry.rb +50 -0
- data/lib/doorkeeper/grant_flow.rb +45 -0
- data/lib/doorkeeper/grape/helpers.rb +7 -3
- data/lib/doorkeeper/helpers/controller.rb +36 -11
- data/lib/doorkeeper/models/access_grant_mixin.rb +22 -18
- data/lib/doorkeeper/models/access_token_mixin.rb +194 -51
- data/lib/doorkeeper/models/application_mixin.rb +8 -7
- data/lib/doorkeeper/models/concerns/ownership.rb +1 -1
- data/lib/doorkeeper/models/concerns/resource_ownerable.rb +47 -0
- data/lib/doorkeeper/models/concerns/reusable.rb +1 -1
- data/lib/doorkeeper/models/concerns/revocable.rb +1 -28
- data/lib/doorkeeper/models/concerns/scopes.rb +5 -1
- data/lib/doorkeeper/models/concerns/secret_storable.rb +1 -3
- data/lib/doorkeeper/oauth/authorization/code.rb +25 -14
- data/lib/doorkeeper/oauth/authorization/context.rb +5 -5
- data/lib/doorkeeper/oauth/authorization/token.rb +24 -19
- data/lib/doorkeeper/oauth/authorization/uri_builder.rb +4 -4
- data/lib/doorkeeper/oauth/authorization_code_request.rb +40 -21
- data/lib/doorkeeper/oauth/base_request.rb +21 -23
- data/lib/doorkeeper/oauth/client/credentials.rb +2 -4
- data/lib/doorkeeper/oauth/client.rb +8 -9
- data/lib/doorkeeper/oauth/client_credentials/creator.rb +45 -5
- data/lib/doorkeeper/oauth/client_credentials/issuer.rb +10 -8
- data/lib/doorkeeper/oauth/client_credentials/{validation.rb → validator.rb} +13 -3
- data/lib/doorkeeper/oauth/client_credentials_request.rb +8 -7
- data/lib/doorkeeper/oauth/code_request.rb +6 -12
- data/lib/doorkeeper/oauth/code_response.rb +24 -14
- data/lib/doorkeeper/oauth/error.rb +1 -1
- data/lib/doorkeeper/oauth/error_response.rb +10 -11
- data/lib/doorkeeper/oauth/helpers/scope_checker.rb +8 -12
- data/lib/doorkeeper/oauth/helpers/unique_token.rb +8 -5
- data/lib/doorkeeper/oauth/helpers/uri_checker.rb +19 -5
- data/lib/doorkeeper/oauth/hooks/context.rb +21 -0
- data/lib/doorkeeper/oauth/invalid_request_response.rb +43 -0
- data/lib/doorkeeper/oauth/invalid_token_response.rb +7 -4
- data/lib/doorkeeper/oauth/nonstandard.rb +39 -0
- data/lib/doorkeeper/oauth/password_access_token_request.rb +34 -11
- data/lib/doorkeeper/oauth/pre_authorization.rb +111 -42
- data/lib/doorkeeper/oauth/refresh_token_request.rb +45 -33
- data/lib/doorkeeper/oauth/token.rb +6 -7
- data/lib/doorkeeper/oauth/token_introspection.rb +24 -18
- data/lib/doorkeeper/oauth/token_request.rb +6 -20
- data/lib/doorkeeper/oauth/token_response.rb +1 -1
- data/lib/doorkeeper/orm/active_record/access_grant.rb +4 -43
- data/lib/doorkeeper/orm/active_record/access_token.rb +4 -35
- data/lib/doorkeeper/orm/active_record/application.rb +5 -83
- data/lib/doorkeeper/orm/active_record/mixins/access_grant.rb +68 -0
- data/lib/doorkeeper/orm/active_record/mixins/access_token.rb +59 -0
- data/lib/doorkeeper/orm/active_record/mixins/application.rb +198 -0
- data/lib/doorkeeper/orm/active_record/redirect_uri_validator.rb +66 -0
- data/lib/doorkeeper/orm/active_record.rb +20 -6
- data/lib/doorkeeper/rails/helpers.rb +4 -4
- data/lib/doorkeeper/rails/routes/abstract_router.rb +35 -0
- data/lib/doorkeeper/rails/routes/mapper.rb +2 -2
- data/lib/doorkeeper/rails/routes/registry.rb +45 -0
- data/lib/doorkeeper/rails/routes.rb +17 -25
- data/lib/doorkeeper/rake/db.rake +6 -6
- data/lib/doorkeeper/rake/setup.rake +5 -0
- data/lib/doorkeeper/request/authorization_code.rb +5 -3
- data/lib/doorkeeper/request/client_credentials.rb +2 -2
- data/lib/doorkeeper/request/password.rb +3 -2
- data/lib/doorkeeper/request/refresh_token.rb +5 -4
- data/lib/doorkeeper/request/strategy.rb +2 -2
- data/lib/doorkeeper/request.rb +49 -17
- data/lib/doorkeeper/server.rb +7 -11
- data/lib/doorkeeper/stale_records_cleaner.rb +6 -2
- data/lib/doorkeeper/version.rb +2 -6
- data/lib/doorkeeper.rb +114 -79
- data/lib/generators/doorkeeper/application_owner_generator.rb +1 -1
- data/lib/generators/doorkeeper/confidential_applications_generator.rb +2 -2
- data/lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb +39 -0
- data/lib/generators/doorkeeper/migration_generator.rb +1 -1
- data/lib/generators/doorkeeper/pkce_generator.rb +1 -1
- data/lib/generators/doorkeeper/previous_refresh_token_generator.rb +7 -7
- data/lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb +3 -1
- data/lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb +2 -0
- data/lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb +2 -0
- data/lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb +17 -0
- data/lib/generators/doorkeeper/templates/initializer.rb +205 -43
- data/lib/generators/doorkeeper/templates/migration.rb.erb +18 -6
- metadata +45 -312
- data/.coveralls.yml +0 -1
- data/.github/ISSUE_TEMPLATE.md +0 -25
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -17
- data/.gitignore +0 -20
- data/.gitlab-ci.yml +0 -16
- data/.hound.yml +0 -3
- data/.rspec +0 -1
- data/.rubocop.yml +0 -50
- data/.travis.yml +0 -35
- data/Appraisals +0 -40
- data/CODE_OF_CONDUCT.md +0 -46
- data/CONTRIBUTING.md +0 -47
- data/Dangerfile +0 -67
- data/Gemfile +0 -24
- data/RELEASING.md +0 -10
- data/Rakefile +0 -28
- data/SECURITY.md +0 -15
- data/UPGRADE.md +0 -2
- data/app/validators/redirect_uri_validator.rb +0 -50
- data/bin/console +0 -16
- data/doorkeeper.gemspec +0 -34
- data/gemfiles/rails_5_0.gemfile +0 -17
- data/gemfiles/rails_5_1.gemfile +0 -17
- data/gemfiles/rails_5_2.gemfile +0 -17
- data/gemfiles/rails_6_0.gemfile +0 -17
- data/gemfiles/rails_master.gemfile +0 -17
- data/spec/controllers/application_metal_controller_spec.rb +0 -64
- data/spec/controllers/applications_controller_spec.rb +0 -180
- data/spec/controllers/authorizations_controller_spec.rb +0 -527
- data/spec/controllers/protected_resources_controller_spec.rb +0 -353
- data/spec/controllers/token_info_controller_spec.rb +0 -50
- data/spec/controllers/tokens_controller_spec.rb +0 -330
- data/spec/dummy/Rakefile +0 -9
- data/spec/dummy/app/assets/config/manifest.js +0 -2
- data/spec/dummy/app/controllers/application_controller.rb +0 -5
- data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -9
- data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -14
- data/spec/dummy/app/controllers/home_controller.rb +0 -18
- data/spec/dummy/app/controllers/metal_controller.rb +0 -13
- data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -13
- data/spec/dummy/app/helpers/application_helper.rb +0 -7
- data/spec/dummy/app/models/user.rb +0 -7
- data/spec/dummy/app/views/home/index.html.erb +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/config/application.rb +0 -47
- data/spec/dummy/config/boot.rb +0 -7
- data/spec/dummy/config/database.yml +0 -15
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -31
- data/spec/dummy/config/environments/production.rb +0 -64
- data/spec/dummy/config/environments/test.rb +0 -45
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -9
- data/spec/dummy/config/initializers/doorkeeper.rb +0 -121
- data/spec/dummy/config/initializers/secret_token.rb +0 -10
- data/spec/dummy/config/initializers/session_store.rb +0 -10
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -16
- data/spec/dummy/config/locales/doorkeeper.en.yml +0 -5
- data/spec/dummy/config/routes.rb +0 -13
- data/spec/dummy/config.ru +0 -6
- data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -11
- data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -7
- data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -69
- data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -9
- data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -13
- data/spec/dummy/db/migrate/20170822064514_enable_pkce.rb +0 -8
- data/spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb +0 -13
- data/spec/dummy/db/schema.rb +0 -68
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -26
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/rails +0 -9
- data/spec/factories.rb +0 -30
- data/spec/generators/application_owner_generator_spec.rb +0 -28
- data/spec/generators/confidential_applications_generator_spec.rb +0 -29
- data/spec/generators/install_generator_spec.rb +0 -36
- data/spec/generators/migration_generator_spec.rb +0 -28
- data/spec/generators/pkce_generator_spec.rb +0 -28
- data/spec/generators/previous_refresh_token_generator_spec.rb +0 -44
- data/spec/generators/templates/routes.rb +0 -4
- data/spec/generators/views_generator_spec.rb +0 -29
- data/spec/grape/grape_integration_spec.rb +0 -137
- data/spec/helpers/doorkeeper/dashboard_helper_spec.rb +0 -26
- data/spec/lib/config_spec.rb +0 -697
- data/spec/lib/doorkeeper_spec.rb +0 -27
- data/spec/lib/models/expirable_spec.rb +0 -61
- data/spec/lib/models/reusable_spec.rb +0 -40
- data/spec/lib/models/revocable_spec.rb +0 -59
- data/spec/lib/models/scopes_spec.rb +0 -53
- data/spec/lib/models/secret_storable_spec.rb +0 -135
- data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -39
- data/spec/lib/oauth/authorization_code_request_spec.rb +0 -156
- data/spec/lib/oauth/base_request_spec.rb +0 -205
- data/spec/lib/oauth/base_response_spec.rb +0 -47
- data/spec/lib/oauth/client/credentials_spec.rb +0 -90
- data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -94
- data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -112
- data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -59
- data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -29
- data/spec/lib/oauth/client_credentials_request_spec.rb +0 -109
- data/spec/lib/oauth/client_spec.rb +0 -38
- data/spec/lib/oauth/code_request_spec.rb +0 -47
- data/spec/lib/oauth/code_response_spec.rb +0 -36
- data/spec/lib/oauth/error_response_spec.rb +0 -66
- data/spec/lib/oauth/error_spec.rb +0 -23
- data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -22
- data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -98
- data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -21
- data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -247
- data/spec/lib/oauth/invalid_token_response_spec.rb +0 -55
- data/spec/lib/oauth/password_access_token_request_spec.rb +0 -192
- data/spec/lib/oauth/pre_authorization_spec.rb +0 -215
- data/spec/lib/oauth/refresh_token_request_spec.rb +0 -177
- data/spec/lib/oauth/scopes_spec.rb +0 -148
- data/spec/lib/oauth/token_request_spec.rb +0 -150
- data/spec/lib/oauth/token_response_spec.rb +0 -86
- data/spec/lib/oauth/token_spec.rb +0 -158
- data/spec/lib/request/strategy_spec.rb +0 -54
- data/spec/lib/secret_storing/base_spec.rb +0 -60
- data/spec/lib/secret_storing/bcrypt_spec.rb +0 -49
- data/spec/lib/secret_storing/plain_spec.rb +0 -44
- data/spec/lib/secret_storing/sha256_hash_spec.rb +0 -48
- data/spec/lib/server_spec.rb +0 -61
- data/spec/lib/stale_records_cleaner_spec.rb +0 -89
- data/spec/models/doorkeeper/access_grant_spec.rb +0 -144
- data/spec/models/doorkeeper/access_token_spec.rb +0 -591
- data/spec/models/doorkeeper/application_spec.rb +0 -367
- data/spec/requests/applications/applications_request_spec.rb +0 -259
- data/spec/requests/applications/authorized_applications_spec.rb +0 -32
- data/spec/requests/endpoints/authorization_spec.rb +0 -73
- data/spec/requests/endpoints/token_spec.rb +0 -75
- data/spec/requests/flows/authorization_code_errors_spec.rb +0 -78
- data/spec/requests/flows/authorization_code_spec.rb +0 -447
- data/spec/requests/flows/client_credentials_spec.rb +0 -128
- data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -34
- data/spec/requests/flows/implicit_grant_spec.rb +0 -90
- data/spec/requests/flows/password_spec.rb +0 -259
- data/spec/requests/flows/refresh_token_spec.rb +0 -233
- data/spec/requests/flows/revoke_token_spec.rb +0 -143
- data/spec/requests/flows/skip_authorization_spec.rb +0 -66
- data/spec/requests/protected_resources/metal_spec.rb +0 -16
- data/spec/requests/protected_resources/private_api_spec.rb +0 -83
- data/spec/routing/custom_controller_routes_spec.rb +0 -133
- data/spec/routing/default_routes_spec.rb +0 -41
- data/spec/routing/scoped_routes_spec.rb +0 -47
- data/spec/spec_helper.rb +0 -57
- data/spec/spec_helper_integration.rb +0 -4
- data/spec/support/dependencies/factory_bot.rb +0 -4
- data/spec/support/doorkeeper_rspec.rb +0 -22
- data/spec/support/helpers/access_token_request_helper.rb +0 -13
- data/spec/support/helpers/authorization_request_helper.rb +0 -43
- data/spec/support/helpers/config_helper.rb +0 -11
- data/spec/support/helpers/model_helper.rb +0 -78
- data/spec/support/helpers/request_spec_helper.rb +0 -98
- data/spec/support/helpers/url_helper.rb +0 -62
- data/spec/support/http_method_shim.rb +0 -29
- data/spec/support/orm/active_record.rb +0 -5
- data/spec/support/shared/controllers_shared_context.rb +0 -123
- data/spec/support/shared/hashing_shared_context.rb +0 -36
- data/spec/support/shared/models_shared_examples.rb +0 -54
- data/spec/validators/redirect_uri_validator_spec.rb +0 -158
- data/spec/version/version_spec.rb +0 -17
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.1
|
4
|
+
version: 5.5.1
|
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:
|
14
|
+
date: 2021-04-06 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: railties
|
@@ -75,42 +75,42 @@ dependencies:
|
|
75
75
|
requirements:
|
76
76
|
- - "~>"
|
77
77
|
- !ruby/object:Gem::Version
|
78
|
-
version: '
|
78
|
+
version: '8.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: '
|
85
|
+
version: '8.0'
|
86
86
|
- !ruby/object:Gem::Dependency
|
87
87
|
name: database_cleaner
|
88
88
|
requirement: !ruby/object:Gem::Requirement
|
89
89
|
requirements:
|
90
90
|
- - "~>"
|
91
91
|
- !ruby/object:Gem::Version
|
92
|
-
version: '
|
92
|
+
version: '2.0'
|
93
93
|
type: :development
|
94
94
|
prerelease: false
|
95
95
|
version_requirements: !ruby/object:Gem::Requirement
|
96
96
|
requirements:
|
97
97
|
- - "~>"
|
98
98
|
- !ruby/object:Gem::Version
|
99
|
-
version: '
|
99
|
+
version: '2.0'
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
101
|
name: factory_bot
|
102
102
|
requirement: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
104
|
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '
|
106
|
+
version: '6.0'
|
107
107
|
type: :development
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
111
|
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: '
|
113
|
+
version: '6.0'
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: generator_spec
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,27 +174,9 @@ executables: []
|
|
174
174
|
extensions: []
|
175
175
|
extra_rdoc_files: []
|
176
176
|
files:
|
177
|
-
-
|
178
|
-
- ".github/ISSUE_TEMPLATE.md"
|
179
|
-
- ".github/PULL_REQUEST_TEMPLATE.md"
|
180
|
-
- ".gitignore"
|
181
|
-
- ".gitlab-ci.yml"
|
182
|
-
- ".hound.yml"
|
183
|
-
- ".rspec"
|
184
|
-
- ".rubocop.yml"
|
185
|
-
- ".travis.yml"
|
186
|
-
- Appraisals
|
187
|
-
- CODE_OF_CONDUCT.md
|
188
|
-
- CONTRIBUTING.md
|
189
|
-
- Dangerfile
|
190
|
-
- Gemfile
|
177
|
+
- CHANGELOG.md
|
191
178
|
- MIT-LICENSE
|
192
|
-
- NEWS.md
|
193
179
|
- README.md
|
194
|
-
- RELEASING.md
|
195
|
-
- Rakefile
|
196
|
-
- SECURITY.md
|
197
|
-
- UPGRADE.md
|
198
180
|
- app/assets/stylesheets/doorkeeper/admin/application.css
|
199
181
|
- app/assets/stylesheets/doorkeeper/application.css
|
200
182
|
- app/controllers/doorkeeper/application_controller.rb
|
@@ -205,7 +187,6 @@ files:
|
|
205
187
|
- app/controllers/doorkeeper/token_info_controller.rb
|
206
188
|
- app/controllers/doorkeeper/tokens_controller.rb
|
207
189
|
- app/helpers/doorkeeper/dashboard_helper.rb
|
208
|
-
- app/validators/redirect_uri_validator.rb
|
209
190
|
- app/views/doorkeeper/applications/_delete_form.html.erb
|
210
191
|
- app/views/doorkeeper/applications/_form.html.erb
|
211
192
|
- app/views/doorkeeper/applications/edit.html.erb
|
@@ -213,25 +194,25 @@ files:
|
|
213
194
|
- app/views/doorkeeper/applications/new.html.erb
|
214
195
|
- app/views/doorkeeper/applications/show.html.erb
|
215
196
|
- app/views/doorkeeper/authorizations/error.html.erb
|
197
|
+
- app/views/doorkeeper/authorizations/form_post.html.erb
|
216
198
|
- app/views/doorkeeper/authorizations/new.html.erb
|
217
199
|
- app/views/doorkeeper/authorizations/show.html.erb
|
218
200
|
- app/views/doorkeeper/authorized_applications/_delete_form.html.erb
|
219
201
|
- app/views/doorkeeper/authorized_applications/index.html.erb
|
220
202
|
- app/views/layouts/doorkeeper/admin.html.erb
|
221
203
|
- app/views/layouts/doorkeeper/application.html.erb
|
222
|
-
- bin/console
|
223
204
|
- config/locales/en.yml
|
224
|
-
- doorkeeper.gemspec
|
225
|
-
- gemfiles/rails_5_0.gemfile
|
226
|
-
- gemfiles/rails_5_1.gemfile
|
227
|
-
- gemfiles/rails_5_2.gemfile
|
228
|
-
- gemfiles/rails_6_0.gemfile
|
229
|
-
- gemfiles/rails_master.gemfile
|
230
205
|
- lib/doorkeeper.rb
|
231
206
|
- lib/doorkeeper/config.rb
|
207
|
+
- lib/doorkeeper/config/abstract_builder.rb
|
232
208
|
- lib/doorkeeper/config/option.rb
|
209
|
+
- lib/doorkeeper/config/validations.rb
|
233
210
|
- lib/doorkeeper/engine.rb
|
234
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
|
235
216
|
- lib/doorkeeper/grape/authorization_decorator.rb
|
236
217
|
- lib/doorkeeper/grape/helpers.rb
|
237
218
|
- lib/doorkeeper/helpers/controller.rb
|
@@ -242,6 +223,7 @@ files:
|
|
242
223
|
- lib/doorkeeper/models/concerns/expirable.rb
|
243
224
|
- lib/doorkeeper/models/concerns/orderable.rb
|
244
225
|
- lib/doorkeeper/models/concerns/ownership.rb
|
226
|
+
- lib/doorkeeper/models/concerns/resource_ownerable.rb
|
245
227
|
- lib/doorkeeper/models/concerns/reusable.rb
|
246
228
|
- lib/doorkeeper/models/concerns/revocable.rb
|
247
229
|
- lib/doorkeeper/models/concerns/scopes.rb
|
@@ -258,7 +240,7 @@ files:
|
|
258
240
|
- lib/doorkeeper/oauth/client/credentials.rb
|
259
241
|
- lib/doorkeeper/oauth/client_credentials/creator.rb
|
260
242
|
- lib/doorkeeper/oauth/client_credentials/issuer.rb
|
261
|
-
- lib/doorkeeper/oauth/client_credentials/
|
243
|
+
- lib/doorkeeper/oauth/client_credentials/validator.rb
|
262
244
|
- lib/doorkeeper/oauth/client_credentials_request.rb
|
263
245
|
- lib/doorkeeper/oauth/code_request.rb
|
264
246
|
- lib/doorkeeper/oauth/code_response.rb
|
@@ -268,7 +250,10 @@ files:
|
|
268
250
|
- lib/doorkeeper/oauth/helpers/scope_checker.rb
|
269
251
|
- lib/doorkeeper/oauth/helpers/unique_token.rb
|
270
252
|
- lib/doorkeeper/oauth/helpers/uri_checker.rb
|
253
|
+
- lib/doorkeeper/oauth/hooks/context.rb
|
254
|
+
- lib/doorkeeper/oauth/invalid_request_response.rb
|
271
255
|
- lib/doorkeeper/oauth/invalid_token_response.rb
|
256
|
+
- lib/doorkeeper/oauth/nonstandard.rb
|
272
257
|
- lib/doorkeeper/oauth/password_access_token_request.rb
|
273
258
|
- lib/doorkeeper/oauth/pre_authorization.rb
|
274
259
|
- lib/doorkeeper/oauth/refresh_token_request.rb
|
@@ -281,11 +266,17 @@ files:
|
|
281
266
|
- lib/doorkeeper/orm/active_record/access_grant.rb
|
282
267
|
- lib/doorkeeper/orm/active_record/access_token.rb
|
283
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
|
284
273
|
- lib/doorkeeper/orm/active_record/stale_records_cleaner.rb
|
285
274
|
- lib/doorkeeper/rails/helpers.rb
|
286
275
|
- lib/doorkeeper/rails/routes.rb
|
276
|
+
- lib/doorkeeper/rails/routes/abstract_router.rb
|
287
277
|
- lib/doorkeeper/rails/routes/mapper.rb
|
288
278
|
- lib/doorkeeper/rails/routes/mapping.rb
|
279
|
+
- lib/doorkeeper/rails/routes/registry.rb
|
289
280
|
- lib/doorkeeper/rake.rb
|
290
281
|
- lib/doorkeeper/rake/db.rake
|
291
282
|
- lib/doorkeeper/rake/setup.rake
|
@@ -307,6 +298,7 @@ files:
|
|
307
298
|
- lib/doorkeeper/version.rb
|
308
299
|
- lib/generators/doorkeeper/application_owner_generator.rb
|
309
300
|
- lib/generators/doorkeeper/confidential_applications_generator.rb
|
301
|
+
- lib/generators/doorkeeper/enable_polymorphic_resource_owner_generator.rb
|
310
302
|
- lib/generators/doorkeeper/install_generator.rb
|
311
303
|
- lib/generators/doorkeeper/migration_generator.rb
|
312
304
|
- lib/generators/doorkeeper/pkce_generator.rb
|
@@ -316,151 +308,28 @@ files:
|
|
316
308
|
- lib/generators/doorkeeper/templates/add_owner_to_application_migration.rb.erb
|
317
309
|
- lib/generators/doorkeeper/templates/add_previous_refresh_token_to_access_tokens.rb.erb
|
318
310
|
- lib/generators/doorkeeper/templates/enable_pkce_migration.rb.erb
|
311
|
+
- lib/generators/doorkeeper/templates/enable_polymorphic_resource_owner_migration.rb.erb
|
319
312
|
- lib/generators/doorkeeper/templates/initializer.rb
|
320
313
|
- lib/generators/doorkeeper/templates/migration.rb.erb
|
321
314
|
- lib/generators/doorkeeper/views_generator.rb
|
322
|
-
- spec/controllers/application_metal_controller_spec.rb
|
323
|
-
- spec/controllers/applications_controller_spec.rb
|
324
|
-
- spec/controllers/authorizations_controller_spec.rb
|
325
|
-
- spec/controllers/protected_resources_controller_spec.rb
|
326
|
-
- spec/controllers/token_info_controller_spec.rb
|
327
|
-
- spec/controllers/tokens_controller_spec.rb
|
328
|
-
- spec/dummy/Rakefile
|
329
|
-
- spec/dummy/app/assets/config/manifest.js
|
330
|
-
- spec/dummy/app/controllers/application_controller.rb
|
331
|
-
- spec/dummy/app/controllers/custom_authorizations_controller.rb
|
332
|
-
- spec/dummy/app/controllers/full_protected_resources_controller.rb
|
333
|
-
- spec/dummy/app/controllers/home_controller.rb
|
334
|
-
- spec/dummy/app/controllers/metal_controller.rb
|
335
|
-
- spec/dummy/app/controllers/semi_protected_resources_controller.rb
|
336
|
-
- spec/dummy/app/helpers/application_helper.rb
|
337
|
-
- spec/dummy/app/models/user.rb
|
338
|
-
- spec/dummy/app/views/home/index.html.erb
|
339
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
340
|
-
- spec/dummy/config.ru
|
341
|
-
- spec/dummy/config/application.rb
|
342
|
-
- spec/dummy/config/boot.rb
|
343
|
-
- spec/dummy/config/database.yml
|
344
|
-
- spec/dummy/config/environment.rb
|
345
|
-
- spec/dummy/config/environments/development.rb
|
346
|
-
- spec/dummy/config/environments/production.rb
|
347
|
-
- spec/dummy/config/environments/test.rb
|
348
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
349
|
-
- spec/dummy/config/initializers/doorkeeper.rb
|
350
|
-
- spec/dummy/config/initializers/secret_token.rb
|
351
|
-
- spec/dummy/config/initializers/session_store.rb
|
352
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
353
|
-
- spec/dummy/config/locales/doorkeeper.en.yml
|
354
|
-
- spec/dummy/config/routes.rb
|
355
|
-
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
356
|
-
- spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
|
357
|
-
- spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
|
358
|
-
- spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
|
359
|
-
- spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
|
360
|
-
- spec/dummy/db/migrate/20170822064514_enable_pkce.rb
|
361
|
-
- spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
|
362
|
-
- spec/dummy/db/schema.rb
|
363
|
-
- spec/dummy/public/404.html
|
364
|
-
- spec/dummy/public/422.html
|
365
|
-
- spec/dummy/public/500.html
|
366
|
-
- spec/dummy/public/favicon.ico
|
367
|
-
- spec/dummy/script/rails
|
368
|
-
- spec/factories.rb
|
369
|
-
- spec/generators/application_owner_generator_spec.rb
|
370
|
-
- spec/generators/confidential_applications_generator_spec.rb
|
371
|
-
- spec/generators/install_generator_spec.rb
|
372
|
-
- spec/generators/migration_generator_spec.rb
|
373
|
-
- spec/generators/pkce_generator_spec.rb
|
374
|
-
- spec/generators/previous_refresh_token_generator_spec.rb
|
375
|
-
- spec/generators/templates/routes.rb
|
376
|
-
- spec/generators/views_generator_spec.rb
|
377
|
-
- spec/grape/grape_integration_spec.rb
|
378
|
-
- spec/helpers/doorkeeper/dashboard_helper_spec.rb
|
379
|
-
- spec/lib/config_spec.rb
|
380
|
-
- spec/lib/doorkeeper_spec.rb
|
381
|
-
- spec/lib/models/expirable_spec.rb
|
382
|
-
- spec/lib/models/reusable_spec.rb
|
383
|
-
- spec/lib/models/revocable_spec.rb
|
384
|
-
- spec/lib/models/scopes_spec.rb
|
385
|
-
- spec/lib/models/secret_storable_spec.rb
|
386
|
-
- spec/lib/oauth/authorization/uri_builder_spec.rb
|
387
|
-
- spec/lib/oauth/authorization_code_request_spec.rb
|
388
|
-
- spec/lib/oauth/base_request_spec.rb
|
389
|
-
- spec/lib/oauth/base_response_spec.rb
|
390
|
-
- spec/lib/oauth/client/credentials_spec.rb
|
391
|
-
- spec/lib/oauth/client_credentials/creator_spec.rb
|
392
|
-
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
393
|
-
- spec/lib/oauth/client_credentials/validation_spec.rb
|
394
|
-
- spec/lib/oauth/client_credentials_integration_spec.rb
|
395
|
-
- spec/lib/oauth/client_credentials_request_spec.rb
|
396
|
-
- spec/lib/oauth/client_spec.rb
|
397
|
-
- spec/lib/oauth/code_request_spec.rb
|
398
|
-
- spec/lib/oauth/code_response_spec.rb
|
399
|
-
- spec/lib/oauth/error_response_spec.rb
|
400
|
-
- spec/lib/oauth/error_spec.rb
|
401
|
-
- spec/lib/oauth/forbidden_token_response_spec.rb
|
402
|
-
- spec/lib/oauth/helpers/scope_checker_spec.rb
|
403
|
-
- spec/lib/oauth/helpers/unique_token_spec.rb
|
404
|
-
- spec/lib/oauth/helpers/uri_checker_spec.rb
|
405
|
-
- spec/lib/oauth/invalid_token_response_spec.rb
|
406
|
-
- spec/lib/oauth/password_access_token_request_spec.rb
|
407
|
-
- spec/lib/oauth/pre_authorization_spec.rb
|
408
|
-
- spec/lib/oauth/refresh_token_request_spec.rb
|
409
|
-
- spec/lib/oauth/scopes_spec.rb
|
410
|
-
- spec/lib/oauth/token_request_spec.rb
|
411
|
-
- spec/lib/oauth/token_response_spec.rb
|
412
|
-
- spec/lib/oauth/token_spec.rb
|
413
|
-
- spec/lib/request/strategy_spec.rb
|
414
|
-
- spec/lib/secret_storing/base_spec.rb
|
415
|
-
- spec/lib/secret_storing/bcrypt_spec.rb
|
416
|
-
- spec/lib/secret_storing/plain_spec.rb
|
417
|
-
- spec/lib/secret_storing/sha256_hash_spec.rb
|
418
|
-
- spec/lib/server_spec.rb
|
419
|
-
- spec/lib/stale_records_cleaner_spec.rb
|
420
|
-
- spec/models/doorkeeper/access_grant_spec.rb
|
421
|
-
- spec/models/doorkeeper/access_token_spec.rb
|
422
|
-
- spec/models/doorkeeper/application_spec.rb
|
423
|
-
- spec/requests/applications/applications_request_spec.rb
|
424
|
-
- spec/requests/applications/authorized_applications_spec.rb
|
425
|
-
- spec/requests/endpoints/authorization_spec.rb
|
426
|
-
- spec/requests/endpoints/token_spec.rb
|
427
|
-
- spec/requests/flows/authorization_code_errors_spec.rb
|
428
|
-
- spec/requests/flows/authorization_code_spec.rb
|
429
|
-
- spec/requests/flows/client_credentials_spec.rb
|
430
|
-
- spec/requests/flows/implicit_grant_errors_spec.rb
|
431
|
-
- spec/requests/flows/implicit_grant_spec.rb
|
432
|
-
- spec/requests/flows/password_spec.rb
|
433
|
-
- spec/requests/flows/refresh_token_spec.rb
|
434
|
-
- spec/requests/flows/revoke_token_spec.rb
|
435
|
-
- spec/requests/flows/skip_authorization_spec.rb
|
436
|
-
- spec/requests/protected_resources/metal_spec.rb
|
437
|
-
- spec/requests/protected_resources/private_api_spec.rb
|
438
|
-
- spec/routing/custom_controller_routes_spec.rb
|
439
|
-
- spec/routing/default_routes_spec.rb
|
440
|
-
- spec/routing/scoped_routes_spec.rb
|
441
|
-
- spec/spec_helper.rb
|
442
|
-
- spec/spec_helper_integration.rb
|
443
|
-
- spec/support/dependencies/factory_bot.rb
|
444
|
-
- spec/support/doorkeeper_rspec.rb
|
445
|
-
- spec/support/helpers/access_token_request_helper.rb
|
446
|
-
- spec/support/helpers/authorization_request_helper.rb
|
447
|
-
- spec/support/helpers/config_helper.rb
|
448
|
-
- spec/support/helpers/model_helper.rb
|
449
|
-
- spec/support/helpers/request_spec_helper.rb
|
450
|
-
- spec/support/helpers/url_helper.rb
|
451
|
-
- spec/support/http_method_shim.rb
|
452
|
-
- spec/support/orm/active_record.rb
|
453
|
-
- spec/support/shared/controllers_shared_context.rb
|
454
|
-
- spec/support/shared/hashing_shared_context.rb
|
455
|
-
- spec/support/shared/models_shared_examples.rb
|
456
|
-
- spec/validators/redirect_uri_validator_spec.rb
|
457
|
-
- spec/version/version_spec.rb
|
458
315
|
- vendor/assets/stylesheets/doorkeeper/bootstrap.min.css
|
459
316
|
homepage: https://github.com/doorkeeper-gem/doorkeeper
|
460
317
|
licenses:
|
461
318
|
- MIT
|
462
|
-
metadata:
|
463
|
-
|
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."
|
464
333
|
rdoc_options: []
|
465
334
|
require_paths:
|
466
335
|
- lib
|
@@ -475,144 +344,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
475
344
|
- !ruby/object:Gem::Version
|
476
345
|
version: '0'
|
477
346
|
requirements: []
|
478
|
-
rubygems_version: 3.
|
347
|
+
rubygems_version: 3.1.2
|
479
348
|
signing_key:
|
480
349
|
specification_version: 4
|
481
350
|
summary: OAuth 2 provider for Rails and Grape
|
482
|
-
test_files:
|
483
|
-
- spec/controllers/application_metal_controller_spec.rb
|
484
|
-
- spec/controllers/applications_controller_spec.rb
|
485
|
-
- spec/controllers/authorizations_controller_spec.rb
|
486
|
-
- spec/controllers/protected_resources_controller_spec.rb
|
487
|
-
- spec/controllers/token_info_controller_spec.rb
|
488
|
-
- spec/controllers/tokens_controller_spec.rb
|
489
|
-
- spec/dummy/Rakefile
|
490
|
-
- spec/dummy/app/assets/config/manifest.js
|
491
|
-
- spec/dummy/app/controllers/application_controller.rb
|
492
|
-
- spec/dummy/app/controllers/custom_authorizations_controller.rb
|
493
|
-
- spec/dummy/app/controllers/full_protected_resources_controller.rb
|
494
|
-
- spec/dummy/app/controllers/home_controller.rb
|
495
|
-
- spec/dummy/app/controllers/metal_controller.rb
|
496
|
-
- spec/dummy/app/controllers/semi_protected_resources_controller.rb
|
497
|
-
- spec/dummy/app/helpers/application_helper.rb
|
498
|
-
- spec/dummy/app/models/user.rb
|
499
|
-
- spec/dummy/app/views/home/index.html.erb
|
500
|
-
- spec/dummy/app/views/layouts/application.html.erb
|
501
|
-
- spec/dummy/config.ru
|
502
|
-
- spec/dummy/config/application.rb
|
503
|
-
- spec/dummy/config/boot.rb
|
504
|
-
- spec/dummy/config/database.yml
|
505
|
-
- spec/dummy/config/environment.rb
|
506
|
-
- spec/dummy/config/environments/development.rb
|
507
|
-
- spec/dummy/config/environments/production.rb
|
508
|
-
- spec/dummy/config/environments/test.rb
|
509
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
510
|
-
- spec/dummy/config/initializers/doorkeeper.rb
|
511
|
-
- spec/dummy/config/initializers/secret_token.rb
|
512
|
-
- spec/dummy/config/initializers/session_store.rb
|
513
|
-
- spec/dummy/config/initializers/wrap_parameters.rb
|
514
|
-
- spec/dummy/config/locales/doorkeeper.en.yml
|
515
|
-
- spec/dummy/config/routes.rb
|
516
|
-
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
517
|
-
- spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
|
518
|
-
- spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
|
519
|
-
- spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb
|
520
|
-
- spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
|
521
|
-
- spec/dummy/db/migrate/20170822064514_enable_pkce.rb
|
522
|
-
- spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
|
523
|
-
- spec/dummy/db/schema.rb
|
524
|
-
- spec/dummy/public/404.html
|
525
|
-
- spec/dummy/public/422.html
|
526
|
-
- spec/dummy/public/500.html
|
527
|
-
- spec/dummy/public/favicon.ico
|
528
|
-
- spec/dummy/script/rails
|
529
|
-
- spec/factories.rb
|
530
|
-
- spec/generators/application_owner_generator_spec.rb
|
531
|
-
- spec/generators/confidential_applications_generator_spec.rb
|
532
|
-
- spec/generators/install_generator_spec.rb
|
533
|
-
- spec/generators/migration_generator_spec.rb
|
534
|
-
- spec/generators/pkce_generator_spec.rb
|
535
|
-
- spec/generators/previous_refresh_token_generator_spec.rb
|
536
|
-
- spec/generators/templates/routes.rb
|
537
|
-
- spec/generators/views_generator_spec.rb
|
538
|
-
- spec/grape/grape_integration_spec.rb
|
539
|
-
- spec/helpers/doorkeeper/dashboard_helper_spec.rb
|
540
|
-
- spec/lib/config_spec.rb
|
541
|
-
- spec/lib/doorkeeper_spec.rb
|
542
|
-
- spec/lib/models/expirable_spec.rb
|
543
|
-
- spec/lib/models/reusable_spec.rb
|
544
|
-
- spec/lib/models/revocable_spec.rb
|
545
|
-
- spec/lib/models/scopes_spec.rb
|
546
|
-
- spec/lib/models/secret_storable_spec.rb
|
547
|
-
- spec/lib/oauth/authorization/uri_builder_spec.rb
|
548
|
-
- spec/lib/oauth/authorization_code_request_spec.rb
|
549
|
-
- spec/lib/oauth/base_request_spec.rb
|
550
|
-
- spec/lib/oauth/base_response_spec.rb
|
551
|
-
- spec/lib/oauth/client/credentials_spec.rb
|
552
|
-
- spec/lib/oauth/client_credentials/creator_spec.rb
|
553
|
-
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
554
|
-
- spec/lib/oauth/client_credentials/validation_spec.rb
|
555
|
-
- spec/lib/oauth/client_credentials_integration_spec.rb
|
556
|
-
- spec/lib/oauth/client_credentials_request_spec.rb
|
557
|
-
- spec/lib/oauth/client_spec.rb
|
558
|
-
- spec/lib/oauth/code_request_spec.rb
|
559
|
-
- spec/lib/oauth/code_response_spec.rb
|
560
|
-
- spec/lib/oauth/error_response_spec.rb
|
561
|
-
- spec/lib/oauth/error_spec.rb
|
562
|
-
- spec/lib/oauth/forbidden_token_response_spec.rb
|
563
|
-
- spec/lib/oauth/helpers/scope_checker_spec.rb
|
564
|
-
- spec/lib/oauth/helpers/unique_token_spec.rb
|
565
|
-
- spec/lib/oauth/helpers/uri_checker_spec.rb
|
566
|
-
- spec/lib/oauth/invalid_token_response_spec.rb
|
567
|
-
- spec/lib/oauth/password_access_token_request_spec.rb
|
568
|
-
- spec/lib/oauth/pre_authorization_spec.rb
|
569
|
-
- spec/lib/oauth/refresh_token_request_spec.rb
|
570
|
-
- spec/lib/oauth/scopes_spec.rb
|
571
|
-
- spec/lib/oauth/token_request_spec.rb
|
572
|
-
- spec/lib/oauth/token_response_spec.rb
|
573
|
-
- spec/lib/oauth/token_spec.rb
|
574
|
-
- spec/lib/request/strategy_spec.rb
|
575
|
-
- spec/lib/secret_storing/base_spec.rb
|
576
|
-
- spec/lib/secret_storing/bcrypt_spec.rb
|
577
|
-
- spec/lib/secret_storing/plain_spec.rb
|
578
|
-
- spec/lib/secret_storing/sha256_hash_spec.rb
|
579
|
-
- spec/lib/server_spec.rb
|
580
|
-
- spec/lib/stale_records_cleaner_spec.rb
|
581
|
-
- spec/models/doorkeeper/access_grant_spec.rb
|
582
|
-
- spec/models/doorkeeper/access_token_spec.rb
|
583
|
-
- spec/models/doorkeeper/application_spec.rb
|
584
|
-
- spec/requests/applications/applications_request_spec.rb
|
585
|
-
- spec/requests/applications/authorized_applications_spec.rb
|
586
|
-
- spec/requests/endpoints/authorization_spec.rb
|
587
|
-
- spec/requests/endpoints/token_spec.rb
|
588
|
-
- spec/requests/flows/authorization_code_errors_spec.rb
|
589
|
-
- spec/requests/flows/authorization_code_spec.rb
|
590
|
-
- spec/requests/flows/client_credentials_spec.rb
|
591
|
-
- spec/requests/flows/implicit_grant_errors_spec.rb
|
592
|
-
- spec/requests/flows/implicit_grant_spec.rb
|
593
|
-
- spec/requests/flows/password_spec.rb
|
594
|
-
- spec/requests/flows/refresh_token_spec.rb
|
595
|
-
- spec/requests/flows/revoke_token_spec.rb
|
596
|
-
- spec/requests/flows/skip_authorization_spec.rb
|
597
|
-
- spec/requests/protected_resources/metal_spec.rb
|
598
|
-
- spec/requests/protected_resources/private_api_spec.rb
|
599
|
-
- spec/routing/custom_controller_routes_spec.rb
|
600
|
-
- spec/routing/default_routes_spec.rb
|
601
|
-
- spec/routing/scoped_routes_spec.rb
|
602
|
-
- spec/spec_helper.rb
|
603
|
-
- spec/spec_helper_integration.rb
|
604
|
-
- spec/support/dependencies/factory_bot.rb
|
605
|
-
- spec/support/doorkeeper_rspec.rb
|
606
|
-
- spec/support/helpers/access_token_request_helper.rb
|
607
|
-
- spec/support/helpers/authorization_request_helper.rb
|
608
|
-
- spec/support/helpers/config_helper.rb
|
609
|
-
- spec/support/helpers/model_helper.rb
|
610
|
-
- spec/support/helpers/request_spec_helper.rb
|
611
|
-
- spec/support/helpers/url_helper.rb
|
612
|
-
- spec/support/http_method_shim.rb
|
613
|
-
- spec/support/orm/active_record.rb
|
614
|
-
- spec/support/shared/controllers_shared_context.rb
|
615
|
-
- spec/support/shared/hashing_shared_context.rb
|
616
|
-
- spec/support/shared/models_shared_examples.rb
|
617
|
-
- spec/validators/redirect_uri_validator_spec.rb
|
618
|
-
- spec/version/version_spec.rb
|
351
|
+
test_files: []
|
data/.coveralls.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
service_name: travis-ci
|
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
### Steps to reproduce
|
2
|
-
What we need to do to see your problem or bug?
|
3
|
-
|
4
|
-
The more detailed the issue, the more likely that we will fix it ASAP.
|
5
|
-
|
6
|
-
Don't use GitHub issues for questions like "How can I do that?" —
|
7
|
-
use [StackOverflow](https://stackoverflow.com/questions/tagged/doorkeeper)
|
8
|
-
instead with the corresponding tag.
|
9
|
-
|
10
|
-
### Expected behavior
|
11
|
-
Tell us what should happen
|
12
|
-
|
13
|
-
### Actual behavior
|
14
|
-
Tell us what happens instead
|
15
|
-
|
16
|
-
### System configuration
|
17
|
-
You can help us to understand your problem if you will share some very
|
18
|
-
useful information about your project environment (don't forget to
|
19
|
-
remove any confidential data if it exists).
|
20
|
-
|
21
|
-
**Doorkeeper initializer**:
|
22
|
-
|
23
|
-
**Ruby version**:
|
24
|
-
|
25
|
-
**Gemfile.lock**:
|
@@ -1,17 +0,0 @@
|
|
1
|
-
### Summary
|
2
|
-
|
3
|
-
Provide a general description of the code changes in your pull
|
4
|
-
request... were there any bugs you had fixed? If so, mention them. If
|
5
|
-
these bugs have open GitHub issues, be sure to tag them here as well,
|
6
|
-
to keep the conversation linked together.
|
7
|
-
|
8
|
-
### Other Information
|
9
|
-
|
10
|
-
If there's anything else that's important and relevant to your pull
|
11
|
-
request, mention that information here. This could include
|
12
|
-
benchmarks, or other information.
|
13
|
-
|
14
|
-
If you are updating NEWS.md file or are asked to update it by reviewers,
|
15
|
-
please add the changelog entry at the top of the file.
|
16
|
-
|
17
|
-
Thanks for contributing to Doorkeeper project!
|
data/.gitignore
DELETED
@@ -1,20 +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
|
-
spec/generators/tmp
|
10
|
-
Gemfile.lock
|
11
|
-
gemfiles/*.lock
|
12
|
-
.rvmrc
|
13
|
-
*.swp
|
14
|
-
.idea
|
15
|
-
/.yardoc/
|
16
|
-
/_yardoc/
|
17
|
-
/doc/
|
18
|
-
/rdoc/
|
19
|
-
coverage
|
20
|
-
*.gem
|
data/.gitlab-ci.yml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
dependency_scanning:
|
2
|
-
image: docker:stable
|
3
|
-
variables:
|
4
|
-
DOCKER_DRIVER: overlay2
|
5
|
-
allow_failure: true
|
6
|
-
services:
|
7
|
-
- docker:stable-dind
|
8
|
-
script:
|
9
|
-
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
|
10
|
-
- docker run
|
11
|
-
--env DEP_SCAN_DISABLE_REMOTE_CHECKS="${DEP_SCAN_DISABLE_REMOTE_CHECKS:-false}"
|
12
|
-
--volume "$PWD:/code"
|
13
|
-
--volume /var/run/docker.sock:/var/run/docker.sock
|
14
|
-
"registry.gitlab.com/gitlab-org/security-products/dependency-scanning:$SP_VERSION" /code
|
15
|
-
artifacts:
|
16
|
-
paths: [gl-dependency-scanning-report.json]
|
data/.hound.yml
DELETED
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/.rubocop.yml
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
AllCops:
|
2
|
-
TargetRubyVersion: 2.4
|
3
|
-
Exclude:
|
4
|
-
- "spec/dummy/db/*"
|
5
|
-
- "spec/dummy/config/*"
|
6
|
-
- "Dangerfile"
|
7
|
-
- "gemfiles/*.gemfile"
|
8
|
-
|
9
|
-
Metrics/BlockLength:
|
10
|
-
Exclude:
|
11
|
-
- spec/**/*
|
12
|
-
- lib/doorkeeper/rake/*
|
13
|
-
|
14
|
-
Metrics/LineLength:
|
15
|
-
Exclude:
|
16
|
-
- spec/**/*
|
17
|
-
Max: 100
|
18
|
-
|
19
|
-
Metrics/MethodLength:
|
20
|
-
Exclude:
|
21
|
-
- spec/dummy/db/*
|
22
|
-
|
23
|
-
Style/StringLiterals:
|
24
|
-
EnforcedStyle: double_quotes
|
25
|
-
Style/StringLiteralsInInterpolation:
|
26
|
-
EnforcedStyle: double_quotes
|
27
|
-
|
28
|
-
Style/FrozenStringLiteralComment:
|
29
|
-
Enabled: true
|
30
|
-
|
31
|
-
Style/TrailingCommaInHashLiteral:
|
32
|
-
EnforcedStyleForMultiline: consistent_comma
|
33
|
-
Style/TrailingCommaInArrayLiteral:
|
34
|
-
EnforcedStyleForMultiline: consistent_comma
|
35
|
-
|
36
|
-
Style/SymbolArray:
|
37
|
-
MinSize: 3
|
38
|
-
Style/WordArray:
|
39
|
-
MinSize: 3
|
40
|
-
|
41
|
-
Style/ClassAndModuleChildren:
|
42
|
-
Exclude:
|
43
|
-
- spec/**/*
|
44
|
-
|
45
|
-
Layout/MultilineMethodCallIndentation:
|
46
|
-
EnforcedStyle: indented
|
47
|
-
Layout/TrailingBlankLines:
|
48
|
-
Enabled: true
|
49
|
-
Layout/DotPosition:
|
50
|
-
EnforcedStyle: leading
|