doorkeeper-mongodb 5.3.0 → 5.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/Rakefile +18 -4
- data/lib/doorkeeper-mongodb/mixins/mongoid/access_token_mixin.rb +45 -5
- data/lib/doorkeeper-mongodb/version.rb +1 -1
- data/spec/dummy/app/assets/config/manifest.js +0 -0
- data/spec/dummy/app/controllers/application_controller.rb +0 -0
- data/spec/dummy/app/controllers/custom_authorizations_controller.rb +0 -0
- data/spec/dummy/app/controllers/full_protected_resources_controller.rb +0 -0
- data/spec/dummy/app/controllers/home_controller.rb +0 -0
- data/spec/dummy/app/controllers/metal_controller.rb +0 -0
- data/spec/dummy/app/controllers/semi_protected_resources_controller.rb +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/views/home/index.html.erb +0 -0
- data/spec/dummy/app/views/layouts/application.html.erb +0 -0
- data/spec/dummy/config/application.rb +0 -0
- data/spec/dummy/config/boot.rb +0 -0
- data/spec/dummy/config/database.yml +0 -0
- data/spec/dummy/config/environment.rb +0 -0
- data/spec/dummy/config/environments/development.rb +0 -0
- data/spec/dummy/config/environments/production.rb +0 -0
- data/spec/dummy/config/environments/test.rb +0 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/spec/dummy/config/initializers/doorkeeper.rb +7 -2
- data/spec/dummy/config/initializers/secret_token.rb +0 -0
- data/spec/dummy/config/initializers/session_store.rb +0 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/spec/dummy/config/locales/doorkeeper.en.yml +0 -0
- data/spec/dummy/config/mongoid8.yml +19 -0
- data/spec/dummy/config/routes.rb +0 -0
- data/spec/dummy/config.ru +1 -1
- data/spec/dummy/db/migrate/20111122132257_create_users.rb +0 -0
- data/spec/dummy/db/migrate/20120312140401_add_password_to_users.rb +0 -0
- data/spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb +0 -0
- data/spec/dummy/db/migrate/20151223200000_add_owner_to_application.rb +0 -0
- data/spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb +0 -0
- data/spec/dummy/db/migrate/20170822064514_enable_pkce.rb +0 -0
- data/spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb +0 -0
- data/spec/dummy/db/migrate/20230205064514_add_custom_attributes.rb +8 -0
- data/spec/dummy/db/schema.rb +3 -1
- data/spec/dummy/log/test.log +39440 -0
- data/spec/dummy/public/404.html +0 -0
- data/spec/dummy/public/422.html +0 -0
- data/spec/dummy/public/500.html +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2L/2LdlR-88TqZc8vSU7Z58xiNpCGRZj0CIlOxSN4Vx2i4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Pn/PnXU_mkG2fLZFm9BwiZ03BZdBTjKuInP-cRXjHS7yJo.cache → 2r/2r0L9eNOmETsg4Tm1IgBdw3J4ahcko41NpILRXu19_A.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/5y/5ywocFQgpSY36nyF_xDKPExhDRo-eqeiqfDvQee1K9k.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Qs/QsVgO6vM5Yn9oeYTYlrqtyVnK6sdVDWDa083N7zpfHw.cache → 8r/8rW0CpDDUJZ7xvg86t6jZ6WmyvaVZ0uTPEPRjghFIKo.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{PA/PAH_jI20wRw12tngeJ-V619c30avNLDu5U9Z-9Pc5SQ.cache → Cs/CsfBL8Dls9-jhjFsNYt4DZxu5LWChDMB-xXKjsEFSsU.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{8D/8DJG7JfPvShfLLyeSom6NZ_TcQc6QH27tJ7prEWZPfI.cache → Cv/Cv9WXE_0OqtPUZBXfTWaE8uKx9oFIzqO18ZkwVaBLSg.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Mf/MfB2-0nbsmC548XBSLftafi6BZ9nAquBA-6eu7mAmdE.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/N2/N2cUP-Um_nQ5ZTCQr_H0bKIjOSIyV7Ry5sT6-DB9e4A.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{FJ/FJlQpfMtpRbrM5P8A7d2FAelFKwo6GrVs2xks8z5GKU.cache → Ot/OtNAnT3d-csAKBtJ8UBLOSwUDyfmOdCWpS08RaSCGsQ.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/P3/P33RwiTMGEu2wZySBEUmf5U7hnfBhdL49wzdUWXYNRs.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/RZ/RZAL9gIt4aD731Ikf7UZZNPSZXzhPqtDskLB7nQcWH4.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/SQ/SQVJeYO2bM0qgQiOaeVBjYo3SWQZmvixa3tXUjsmuUs.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Ma/MaK3K1AoZZ4xM5fOOifhROd73hfZJpP4yGbkGdoYtEk.cache → V2/V2JApVhUSYhvWnNVIbpe58U4xheVkpi0gCStqjDN6-A.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Lk/LklIq5hrBAPESXVUpFMwQ9L-1qTj90sPVi6U19_Xi-Q.cache → VA/VADOUaZFukufOb44ts4KoyQZumPcVJET0bi9RvC7c-o.cache} +1 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Vz/VzdPLfWn16XbpHNJdkDMamAf3QutM29cvvPkDNyy5nE.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/W9/W9QfraySVwoRt-SgGOIS0e-iP8R1qP_URwXZw1l6M5E.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wy/Wyiw07ngOzgV6RPis_Lo2hhSRkwo2YSqKTEDAF0crhA.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Z6/Z6rAtdVt3OXS26vLVCtdO3vmMlttI3ajdpbC2FHk7iQ.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/b6/b6QRH6ZdCc0e6bUWu4qni_kZmptaMgWciO8Jl9q6_p8.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{Pm/PmheG0PGFqDws1qgFOxOyIL-gpMof3Ar9eSRKVLYuik.cache → fP/fPihom3hnc1rQQxpviTvZPRJB_IghWYWP3dDcsGrcLk.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gD/gDU38plXvosMgFK47_PBI9xGVsmsE2tShWEZzxiek3k.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/gR/gRqL5_jaFW7eA3d2frJmOzw_vFLuvfhwMhotAlsO8J4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jC/jCTZ1jAldKBn4OTANBBmCKzxLrDgok1ur4meoTqlDNg.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{yN/yNOFGOsnHmxXNMkuEAWuL1u3jlmdvrdeoTx6DDJ1in8.cache → jc/jcB8w1gBT7JP10DW4OOvvYpW1ZFeMyedngmMy3QbRLQ.cache} +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jg/jgxXkkkXf1NPOPrpNdEJzhDt-2xHGzd_-mLkIHWrOr4.cache +2 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/nx/nxzZnvk5YyBhTUloQSZZ5zRuaqlsLiHy_AbOzQ3d788.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/wr/wrlf8nUW2yftpcIA97qImyECR8f8o3OiOdHLdfkmw8c.cache +1 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/{qT/qTQIQsmS0Wbbg2JxNn9rxdI5qVOTg5SfyQdaTvr9vLo.cache → xd/xdD4KJ55W3jy5PIrwT0UnDp1toKpUfgrjJBgB4WaPIc.cache} +0 -0
- data/spec/support/doorkeeper_rspec.rb +0 -0
- data/spec/support/orm/mongoid.rb +18 -2
- data/spec/support/orm/mongoid8.rb +6 -0
- data/spec/support/render_with_matcher.rb +26 -0
- metadata +117 -241
- data/spec/controllers/application_metal_controller_spec.rb +0 -64
- data/spec/controllers/applications_controller_spec.rb +0 -270
- data/spec/controllers/authorizations_controller_spec.rb +0 -744
- data/spec/controllers/protected_resources_controller_spec.rb +0 -361
- data/spec/controllers/token_info_controller_spec.rb +0 -50
- data/spec/controllers/tokens_controller_spec.rb +0 -542
- data/spec/doorkeeper/redirect_uri_validator_spec.rb +0 -183
- data/spec/doorkeeper/server_spec.rb +0 -50
- data/spec/doorkeeper/stale_records_cleaner_spec.rb +0 -103
- data/spec/doorkeeper/version_spec.rb +0 -17
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/-o/-ofn45zIfO5vx4VD6m6NXesLf6da5usA-Sbw2SVju3o.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/0_/0_ouGcG_o_1zmVmBe-tdQYk594LBwVa1bumjrKtdfEw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/2X/2XMMcHbyTSRqh1GkV0xzyIETNtt-zgN6iniziShaKmQ.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/4Q/4QQw-pMQ98JIj3xdcFhGBQdysdGPY9rWffRqWMmyjew.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/7H/7HjRsym0tTpXFCVhWt6kteMs_-CozKVbr9s5syHm8es.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/8B/8BxJyv22HPFHu1se_l2J8qW1N9NzZ16UOWOy1YMSgs4.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/9x/9xjtGv-yKjj62x9uFwBZg8pTSh9ERPAgANwNo9uwIaA.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Bt/BtXO7f0PZ8DNt3TMLYM-zY7LkbWa_KgyB0v1V98M1CQ.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/E0/E02f1Q2tutWumMulGCFNfqQNjvEP_hMAK_5E83eWepI.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/EZ/EZGpd6pUEJZxO6uT2yIS4Fpn5KX7VDgC9VB3AaemF5Q.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/L8/L8mOWakJlWKr6MU85rj0V7yGFfNyIR6vE6YXtqArPGw.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/MB/MBWRxa9S470ee8suxVKp0jYgv6K6FQOqKGV0kPGQNMs.cache +0 -1
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Ph/Ph7RtH_NvG2I8XpTa8mA8SBQXZDzBPVIh4CH6g7OXJ0.cache +0 -2
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/So/So59ksdx2dw-_A3-zFZ6Palr7fROjm7_0JDZb04temw.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Wt/WtXL_iDofLeTH_v0Yf3PM421r9b1V0g-VBvMPeu9KA0.cache +0 -0
- data/spec/dummy/tmp/cache/assets/sprockets/v4.0.0/dX/dX6FDdUIy8yBCOoaoXcjf71rX9N_bpiXGJ4Urt32NTk.cache +0 -0
- data/spec/factories.rb +0 -30
- 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 -824
- 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 -55
- data/spec/lib/models/scopes_spec.rb +0 -61
- data/spec/lib/models/secret_storable_spec.rb +0 -136
- data/spec/lib/oauth/authorization/uri_builder_spec.rb +0 -35
- data/spec/lib/oauth/authorization_code_request_spec.rb +0 -180
- data/spec/lib/oauth/base_request_spec.rb +0 -210
- data/spec/lib/oauth/base_response_spec.rb +0 -45
- data/spec/lib/oauth/client/credentials_spec.rb +0 -90
- data/spec/lib/oauth/client_credentials/creator_spec.rb +0 -135
- data/spec/lib/oauth/client_credentials/issuer_spec.rb +0 -110
- data/spec/lib/oauth/client_credentials/validation_spec.rb +0 -92
- data/spec/lib/oauth/client_credentials_integration_spec.rb +0 -27
- data/spec/lib/oauth/client_credentials_request_spec.rb +0 -105
- data/spec/lib/oauth/client_spec.rb +0 -38
- data/spec/lib/oauth/code_request_spec.rb +0 -46
- data/spec/lib/oauth/code_response_spec.rb +0 -36
- data/spec/lib/oauth/error_response_spec.rb +0 -65
- data/spec/lib/oauth/error_spec.rb +0 -21
- data/spec/lib/oauth/forbidden_token_response_spec.rb +0 -20
- data/spec/lib/oauth/helpers/scope_checker_spec.rb +0 -110
- data/spec/lib/oauth/helpers/unique_token_spec.rb +0 -21
- data/spec/lib/oauth/helpers/uri_checker_spec.rb +0 -262
- data/spec/lib/oauth/invalid_request_response_spec.rb +0 -73
- data/spec/lib/oauth/invalid_token_response_spec.rb +0 -53
- data/spec/lib/oauth/password_access_token_request_spec.rb +0 -202
- data/spec/lib/oauth/pre_authorization_spec.rb +0 -230
- data/spec/lib/oauth/refresh_token_request_spec.rb +0 -166
- data/spec/lib/oauth/scopes_spec.rb +0 -146
- data/spec/lib/oauth/token_request_spec.rb +0 -164
- data/spec/lib/oauth/token_response_spec.rb +0 -84
- data/spec/lib/oauth/token_spec.rb +0 -156
- data/spec/lib/option_spec.rb +0 -51
- data/spec/lib/request/strategy_spec.rb +0 -51
- data/spec/lib/secret_storing/base_spec.rb +0 -61
- data/spec/lib/secret_storing/bcrypt_spec.rb +0 -50
- data/spec/lib/secret_storing/plain_spec.rb +0 -45
- data/spec/lib/secret_storing/sha256_hash_spec.rb +0 -49
- data/spec/models/doorkeeper/access_grant_spec.rb +0 -173
- data/spec/models/doorkeeper/access_token_spec.rb +0 -644
- data/spec/models/doorkeeper/application_spec.rb +0 -499
- data/spec/requests/applications/applications_request_spec.rb +0 -257
- data/spec/requests/applications/authorized_applications_spec.rb +0 -32
- data/spec/requests/endpoints/authorization_spec.rb +0 -91
- data/spec/requests/endpoints/token_spec.rb +0 -85
- data/spec/requests/flows/authorization_code_errors_spec.rb +0 -86
- data/spec/requests/flows/authorization_code_spec.rb +0 -559
- data/spec/requests/flows/client_credentials_spec.rb +0 -219
- data/spec/requests/flows/implicit_grant_errors_spec.rb +0 -46
- data/spec/requests/flows/implicit_grant_spec.rb +0 -91
- data/spec/requests/flows/password_spec.rb +0 -356
- data/spec/requests/flows/refresh_token_spec.rb +0 -255
- data/spec/requests/flows/revoke_token_spec.rb +0 -196
- 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 -54
- data/spec/spec_helper_integration.rb +0 -4
- data/spec/support/dependencies/factory_bot.rb +0 -4
- data/spec/support/helpers/access_token_request_helper.rb +0 -14
- 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/orm/active_record.rb +0 -5
- data/spec/support/shared/controllers_shared_context.rb +0 -100
- data/spec/support/shared/hashing_shared_context.rb +0 -40
- 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.
|
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:
|
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:
|
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:
|
49
|
+
name: coveralls_reborn
|
50
50
|
requirement: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
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:
|
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: '
|
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: '
|
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.
|
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.
|
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
|
-
|
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: []
|
@@ -163,16 +205,6 @@ files:
|
|
163
205
|
- lib/doorkeeper/orm/mongoid8/access_token.rb
|
164
206
|
- lib/doorkeeper/orm/mongoid8/application.rb
|
165
207
|
- lib/doorkeeper/orm/mongoid8/stale_records_cleaner.rb
|
166
|
-
- spec/controllers/application_metal_controller_spec.rb
|
167
|
-
- spec/controllers/applications_controller_spec.rb
|
168
|
-
- spec/controllers/authorizations_controller_spec.rb
|
169
|
-
- spec/controllers/protected_resources_controller_spec.rb
|
170
|
-
- spec/controllers/token_info_controller_spec.rb
|
171
|
-
- spec/controllers/tokens_controller_spec.rb
|
172
|
-
- spec/doorkeeper/redirect_uri_validator_spec.rb
|
173
|
-
- spec/doorkeeper/server_spec.rb
|
174
|
-
- spec/doorkeeper/stale_records_cleaner_spec.rb
|
175
|
-
- spec/doorkeeper/version_spec.rb
|
176
208
|
- spec/dummy/Rakefile
|
177
209
|
- spec/dummy/app/assets/config/manifest.js
|
178
210
|
- spec/dummy/app/controllers/application_controller.rb
|
@@ -204,6 +236,7 @@ files:
|
|
204
236
|
- spec/dummy/config/mongoid5.yml
|
205
237
|
- spec/dummy/config/mongoid6.yml
|
206
238
|
- spec/dummy/config/mongoid7.yml
|
239
|
+
- spec/dummy/config/mongoid8.yml
|
207
240
|
- spec/dummy/config/routes.rb
|
208
241
|
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
209
242
|
- spec/dummy/db/migrate/20120312140401_add_password_to_users.rb
|
@@ -212,124 +245,50 @@ files:
|
|
212
245
|
- spec/dummy/db/migrate/20160320211015_add_previous_refresh_token_to_access_tokens.rb
|
213
246
|
- spec/dummy/db/migrate/20170822064514_enable_pkce.rb
|
214
247
|
- spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
|
248
|
+
- spec/dummy/db/migrate/20230205064514_add_custom_attributes.rb
|
215
249
|
- spec/dummy/db/schema.rb
|
250
|
+
- spec/dummy/log/test.log
|
216
251
|
- spec/dummy/public/404.html
|
217
252
|
- spec/dummy/public/422.html
|
218
253
|
- spec/dummy/public/500.html
|
219
254
|
- spec/dummy/public/favicon.ico
|
220
255
|
- spec/dummy/script/rails
|
221
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0
|
222
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
223
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
224
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
225
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
226
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
227
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
228
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
229
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
230
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
231
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
232
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
233
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
234
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
235
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
236
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
237
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
238
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
239
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Pm/PmheG0PGFqDws1qgFOxOyIL-gpMof3Ar9eSRKVLYuik.cache
|
240
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Pn/PnXU_mkG2fLZFm9BwiZ03BZdBTjKuInP-cRXjHS7yJo.cache
|
241
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/Qs/QsVgO6vM5Yn9oeYTYlrqtyVnK6sdVDWDa083N7zpfHw.cache
|
242
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/So/So59ksdx2dw-_A3-zFZ6Palr7fROjm7_0JDZb04temw.cache
|
243
|
-
- 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
|
244
274
|
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/b6/b6QRH6ZdCc0e6bUWu4qni_kZmptaMgWciO8Jl9q6_p8.cache
|
245
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
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
|
246
278
|
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jC/jCTZ1jAldKBn4OTANBBmCKzxLrDgok1ur4meoTqlDNg.cache
|
247
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
248
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
249
|
-
- spec/
|
250
|
-
- spec/
|
251
|
-
- spec/
|
252
|
-
- spec/lib/config_spec.rb
|
253
|
-
- spec/lib/doorkeeper_spec.rb
|
254
|
-
- spec/lib/models/expirable_spec.rb
|
255
|
-
- spec/lib/models/reusable_spec.rb
|
256
|
-
- spec/lib/models/revocable_spec.rb
|
257
|
-
- spec/lib/models/scopes_spec.rb
|
258
|
-
- spec/lib/models/secret_storable_spec.rb
|
259
|
-
- spec/lib/oauth/authorization/uri_builder_spec.rb
|
260
|
-
- spec/lib/oauth/authorization_code_request_spec.rb
|
261
|
-
- spec/lib/oauth/base_request_spec.rb
|
262
|
-
- spec/lib/oauth/base_response_spec.rb
|
263
|
-
- spec/lib/oauth/client/credentials_spec.rb
|
264
|
-
- spec/lib/oauth/client_credentials/creator_spec.rb
|
265
|
-
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
266
|
-
- spec/lib/oauth/client_credentials/validation_spec.rb
|
267
|
-
- spec/lib/oauth/client_credentials_integration_spec.rb
|
268
|
-
- spec/lib/oauth/client_credentials_request_spec.rb
|
269
|
-
- spec/lib/oauth/client_spec.rb
|
270
|
-
- spec/lib/oauth/code_request_spec.rb
|
271
|
-
- spec/lib/oauth/code_response_spec.rb
|
272
|
-
- spec/lib/oauth/error_response_spec.rb
|
273
|
-
- spec/lib/oauth/error_spec.rb
|
274
|
-
- spec/lib/oauth/forbidden_token_response_spec.rb
|
275
|
-
- spec/lib/oauth/helpers/scope_checker_spec.rb
|
276
|
-
- spec/lib/oauth/helpers/unique_token_spec.rb
|
277
|
-
- spec/lib/oauth/helpers/uri_checker_spec.rb
|
278
|
-
- spec/lib/oauth/invalid_request_response_spec.rb
|
279
|
-
- spec/lib/oauth/invalid_token_response_spec.rb
|
280
|
-
- spec/lib/oauth/password_access_token_request_spec.rb
|
281
|
-
- spec/lib/oauth/pre_authorization_spec.rb
|
282
|
-
- spec/lib/oauth/refresh_token_request_spec.rb
|
283
|
-
- spec/lib/oauth/scopes_spec.rb
|
284
|
-
- spec/lib/oauth/token_request_spec.rb
|
285
|
-
- spec/lib/oauth/token_response_spec.rb
|
286
|
-
- spec/lib/oauth/token_spec.rb
|
287
|
-
- spec/lib/option_spec.rb
|
288
|
-
- spec/lib/request/strategy_spec.rb
|
289
|
-
- spec/lib/secret_storing/base_spec.rb
|
290
|
-
- spec/lib/secret_storing/bcrypt_spec.rb
|
291
|
-
- spec/lib/secret_storing/plain_spec.rb
|
292
|
-
- spec/lib/secret_storing/sha256_hash_spec.rb
|
293
|
-
- spec/models/doorkeeper/access_grant_spec.rb
|
294
|
-
- spec/models/doorkeeper/access_token_spec.rb
|
295
|
-
- spec/models/doorkeeper/application_spec.rb
|
296
|
-
- spec/requests/applications/applications_request_spec.rb
|
297
|
-
- spec/requests/applications/authorized_applications_spec.rb
|
298
|
-
- spec/requests/endpoints/authorization_spec.rb
|
299
|
-
- spec/requests/endpoints/token_spec.rb
|
300
|
-
- spec/requests/flows/authorization_code_errors_spec.rb
|
301
|
-
- spec/requests/flows/authorization_code_spec.rb
|
302
|
-
- spec/requests/flows/client_credentials_spec.rb
|
303
|
-
- spec/requests/flows/implicit_grant_errors_spec.rb
|
304
|
-
- spec/requests/flows/implicit_grant_spec.rb
|
305
|
-
- spec/requests/flows/password_spec.rb
|
306
|
-
- spec/requests/flows/refresh_token_spec.rb
|
307
|
-
- spec/requests/flows/revoke_token_spec.rb
|
308
|
-
- spec/requests/flows/skip_authorization_spec.rb
|
309
|
-
- spec/requests/protected_resources/metal_spec.rb
|
310
|
-
- spec/requests/protected_resources/private_api_spec.rb
|
311
|
-
- spec/routing/custom_controller_routes_spec.rb
|
312
|
-
- spec/routing/default_routes_spec.rb
|
313
|
-
- spec/routing/scoped_routes_spec.rb
|
314
|
-
- spec/spec_helper.rb
|
315
|
-
- spec/spec_helper_integration.rb
|
316
|
-
- 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
|
317
284
|
- spec/support/doorkeeper_rspec.rb
|
318
|
-
- spec/support/helpers/access_token_request_helper.rb
|
319
|
-
- spec/support/helpers/authorization_request_helper.rb
|
320
|
-
- spec/support/helpers/config_helper.rb
|
321
|
-
- spec/support/helpers/model_helper.rb
|
322
|
-
- spec/support/helpers/request_spec_helper.rb
|
323
|
-
- spec/support/helpers/url_helper.rb
|
324
|
-
- spec/support/orm/active_record.rb
|
325
285
|
- spec/support/orm/mongoid.rb
|
326
286
|
- spec/support/orm/mongoid4.rb
|
327
287
|
- spec/support/orm/mongoid5.rb
|
328
288
|
- spec/support/orm/mongoid6.rb
|
329
289
|
- spec/support/orm/mongoid7.rb
|
330
|
-
- spec/support/
|
331
|
-
- spec/support/
|
332
|
-
- spec/support/shared/models_shared_examples.rb
|
290
|
+
- spec/support/orm/mongoid8.rb
|
291
|
+
- spec/support/render_with_matcher.rb
|
333
292
|
homepage: http://github.com/doorkeeper-gem/doorkeeper-mongodb
|
334
293
|
licenses:
|
335
294
|
- MIT
|
@@ -373,12 +332,14 @@ test_files:
|
|
373
332
|
- spec/dummy/db/migrate/20170822064514_enable_pkce.rb
|
374
333
|
- spec/dummy/db/migrate/20180210183654_add_confidential_to_applications.rb
|
375
334
|
- spec/dummy/db/migrate/20151223192035_create_doorkeeper_tables.rb
|
335
|
+
- spec/dummy/db/migrate/20230205064514_add_custom_attributes.rb
|
376
336
|
- spec/dummy/db/migrate/20111122132257_create_users.rb
|
377
337
|
- spec/dummy/public/500.html
|
378
338
|
- spec/dummy/public/404.html
|
379
339
|
- spec/dummy/public/422.html
|
380
340
|
- spec/dummy/public/favicon.ico
|
381
341
|
- spec/dummy/config/locales/doorkeeper.en.yml
|
342
|
+
- spec/dummy/config/mongoid8.yml
|
382
343
|
- spec/dummy/config/environment.rb
|
383
344
|
- spec/dummy/config/database.yml
|
384
345
|
- spec/dummy/config/initializers/doorkeeper.rb
|
@@ -399,125 +360,40 @@ test_files:
|
|
399
360
|
- spec/dummy/config/application.rb
|
400
361
|
- spec/dummy/Rakefile
|
401
362
|
- spec/dummy/script/rails
|
402
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
363
|
+
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/VA/VADOUaZFukufOb44ts4KoyQZumPcVJET0bi9RvC7c-o.cache
|
403
364
|
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/jC/jCTZ1jAldKBn4OTANBBmCKzxLrDgok1ur4meoTqlDNg.cache
|
404
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
405
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
406
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
407
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
408
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
409
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
410
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
411
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
412
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
413
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
414
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
415
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
416
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
417
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
418
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
419
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
420
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
421
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
422
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
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
|
423
386
|
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/b6/b6QRH6ZdCc0e6bUWu4qni_kZmptaMgWciO8Jl9q6_p8.cache
|
424
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
425
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
426
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
427
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/
|
428
|
-
- spec/dummy/
|
429
|
-
- spec/dummy/tmp/cache/assets/sprockets/v4.0.0/-o/-ofn45zIfO5vx4VD6m6NXesLf6da5usA-Sbw2SVju3o.cache
|
430
|
-
- spec/helpers/doorkeeper/dashboard_helper_spec.rb
|
431
|
-
- spec/support/helpers/authorization_request_helper.rb
|
432
|
-
- spec/support/helpers/access_token_request_helper.rb
|
433
|
-
- spec/support/helpers/request_spec_helper.rb
|
434
|
-
- spec/support/helpers/config_helper.rb
|
435
|
-
- spec/support/helpers/model_helper.rb
|
436
|
-
- spec/support/helpers/url_helper.rb
|
437
|
-
- spec/support/dependencies/factory_bot.rb
|
438
|
-
- spec/support/shared/hashing_shared_context.rb
|
439
|
-
- spec/support/shared/models_shared_examples.rb
|
440
|
-
- 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
|
441
392
|
- spec/support/orm/mongoid7.rb
|
442
393
|
- spec/support/orm/mongoid6.rb
|
443
394
|
- spec/support/orm/mongoid4.rb
|
395
|
+
- spec/support/orm/mongoid8.rb
|
444
396
|
- spec/support/orm/mongoid.rb
|
445
|
-
- spec/support/orm/active_record.rb
|
446
397
|
- spec/support/orm/mongoid5.rb
|
447
398
|
- spec/support/doorkeeper_rspec.rb
|
448
|
-
- spec/
|
449
|
-
- spec/models/doorkeeper/access_grant_spec.rb
|
450
|
-
- spec/models/doorkeeper/access_token_spec.rb
|
451
|
-
- spec/controllers/tokens_controller_spec.rb
|
452
|
-
- spec/controllers/protected_resources_controller_spec.rb
|
453
|
-
- spec/controllers/authorizations_controller_spec.rb
|
454
|
-
- spec/controllers/applications_controller_spec.rb
|
455
|
-
- spec/controllers/application_metal_controller_spec.rb
|
456
|
-
- spec/controllers/token_info_controller_spec.rb
|
457
|
-
- spec/requests/protected_resources/metal_spec.rb
|
458
|
-
- spec/requests/protected_resources/private_api_spec.rb
|
459
|
-
- spec/requests/applications/applications_request_spec.rb
|
460
|
-
- spec/requests/applications/authorized_applications_spec.rb
|
461
|
-
- spec/requests/endpoints/token_spec.rb
|
462
|
-
- spec/requests/endpoints/authorization_spec.rb
|
463
|
-
- spec/requests/flows/client_credentials_spec.rb
|
464
|
-
- spec/requests/flows/password_spec.rb
|
465
|
-
- spec/requests/flows/authorization_code_spec.rb
|
466
|
-
- spec/requests/flows/refresh_token_spec.rb
|
467
|
-
- spec/requests/flows/revoke_token_spec.rb
|
468
|
-
- spec/requests/flows/skip_authorization_spec.rb
|
469
|
-
- spec/requests/flows/implicit_grant_errors_spec.rb
|
470
|
-
- spec/requests/flows/authorization_code_errors_spec.rb
|
471
|
-
- spec/requests/flows/implicit_grant_spec.rb
|
472
|
-
- spec/routing/scoped_routes_spec.rb
|
473
|
-
- spec/routing/default_routes_spec.rb
|
474
|
-
- spec/routing/custom_controller_routes_spec.rb
|
475
|
-
- spec/spec_helper_integration.rb
|
476
|
-
- spec/factories.rb
|
477
|
-
- spec/grape/grape_integration_spec.rb
|
478
|
-
- spec/spec_helper.rb
|
479
|
-
- spec/lib/request/strategy_spec.rb
|
480
|
-
- spec/lib/secret_storing/bcrypt_spec.rb
|
481
|
-
- spec/lib/secret_storing/plain_spec.rb
|
482
|
-
- spec/lib/secret_storing/sha256_hash_spec.rb
|
483
|
-
- spec/lib/secret_storing/base_spec.rb
|
484
|
-
- spec/lib/models/reusable_spec.rb
|
485
|
-
- spec/lib/models/expirable_spec.rb
|
486
|
-
- spec/lib/models/secret_storable_spec.rb
|
487
|
-
- spec/lib/models/scopes_spec.rb
|
488
|
-
- spec/lib/models/revocable_spec.rb
|
489
|
-
- spec/lib/config_spec.rb
|
490
|
-
- spec/lib/oauth/token_spec.rb
|
491
|
-
- spec/lib/oauth/base_request_spec.rb
|
492
|
-
- spec/lib/oauth/helpers/uri_checker_spec.rb
|
493
|
-
- spec/lib/oauth/helpers/scope_checker_spec.rb
|
494
|
-
- spec/lib/oauth/helpers/unique_token_spec.rb
|
495
|
-
- spec/lib/oauth/error_spec.rb
|
496
|
-
- spec/lib/oauth/client_spec.rb
|
497
|
-
- spec/lib/oauth/client_credentials_integration_spec.rb
|
498
|
-
- spec/lib/oauth/password_access_token_request_spec.rb
|
499
|
-
- spec/lib/oauth/client_credentials_request_spec.rb
|
500
|
-
- spec/lib/oauth/refresh_token_request_spec.rb
|
501
|
-
- spec/lib/oauth/invalid_request_response_spec.rb
|
502
|
-
- spec/lib/oauth/code_request_spec.rb
|
503
|
-
- spec/lib/oauth/pre_authorization_spec.rb
|
504
|
-
- spec/lib/oauth/client/credentials_spec.rb
|
505
|
-
- spec/lib/oauth/code_response_spec.rb
|
506
|
-
- spec/lib/oauth/error_response_spec.rb
|
507
|
-
- spec/lib/oauth/client_credentials/validation_spec.rb
|
508
|
-
- spec/lib/oauth/client_credentials/creator_spec.rb
|
509
|
-
- spec/lib/oauth/client_credentials/issuer_spec.rb
|
510
|
-
- spec/lib/oauth/authorization_code_request_spec.rb
|
511
|
-
- spec/lib/oauth/invalid_token_response_spec.rb
|
512
|
-
- spec/lib/oauth/forbidden_token_response_spec.rb
|
513
|
-
- spec/lib/oauth/scopes_spec.rb
|
514
|
-
- spec/lib/oauth/token_response_spec.rb
|
515
|
-
- spec/lib/oauth/authorization/uri_builder_spec.rb
|
516
|
-
- spec/lib/oauth/token_request_spec.rb
|
517
|
-
- spec/lib/oauth/base_response_spec.rb
|
518
|
-
- spec/lib/option_spec.rb
|
519
|
-
- spec/lib/doorkeeper_spec.rb
|
520
|
-
- spec/doorkeeper/stale_records_cleaner_spec.rb
|
521
|
-
- spec/doorkeeper/redirect_uri_validator_spec.rb
|
522
|
-
- spec/doorkeeper/version_spec.rb
|
523
|
-
- 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
|