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