Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1248 commits
Select commit Hold shift + click to select a range
07a3e17
Merge pull request #1243 from linhdangduy/add_nil_check_operator
nbulaj Apr 10, 2019
2dac191
Release 5.1.0
nbulaj Apr 17, 2019
3c7cf7e
Specify case sensitive uniqueness for model validations
Apr 29, 2019
8b88a08
Merge pull request #1249 from jpawlyn/master
nbulaj May 1, 2019
c4484b2
Show application secret after creation even if `hash_application_secr…
iv-mexx Apr 27, 2019
e59b25f
Return the plaintext_secret in JSON response when creating a new appl…
iv-mexx Apr 30, 2019
f1be818
Merge pull request #1248 from iv-mexx/feature/application_secret
nbulaj May 2, 2019
5711794
Update Rubocop, fix specs with ActionCable
nbulaj May 16, 2019
28e9c0d
Increase rubocop version for Hound
nbulaj May 16, 2019
94dfa31
Merge pull request #1255 from doorkeeper-gem/fix-specs
nbulaj May 16, 2019
e45d8c4
Small refactoring
nbulaj May 16, 2019
fe5f60f
Use existing exception response in get_error_response_from_exception
May 15, 2019
420b05b
Merge pull request #1253 from mwmeyer/use-existing-exception-error-re…
nbulaj May 16, 2019
d9cbf3d
#1251: rename NEWS to CHANGELOG (#1256)
nbulaj May 16, 2019
4930248
Handling the case when an unauthorized user wants to revoke a token
crismethods May 15, 2019
89fc3fb
Merge pull request #1252 from cristofer/cristofer_fixing_forbidden_st…
nbulaj May 18, 2019
ebedb3c
proper support for native apps using custom scheme, claimed https red…
montdidier May 8, 2019
59a1227
Merge pull request #1238 from pinpayments/feature/better-native
nbulaj May 20, 2019
ada55a4
Add comment to remove application constraint in oauth_access_grants t…
elioncho May 21, 2019
417be4d
Add constraint configurations when using client authentication on int…
linhdangduy May 17, 2019
b1e076a
Merge pull request #1257 from linhdangduy/resource_server
nbulaj May 22, 2019
69d7694
Merge pull request #1258 from elioncho/add-comment-to-remove-applicat…
nbulaj May 22, 2019
fe2accf
#1204: Improve token introspection configuration
nbulaj May 22, 2019
b56ee0d
Merge pull request #1260 from doorkeeper-gem/improve_token_introspect…
nbulaj May 22, 2019
b8a7443
#1204: Improve token introspection configuration
nbulaj May 23, 2019
21d0cfd
Merge pull request #1262 from doorkeeper-gem/allow_to_check_authorize…
nbulaj May 23, 2019
4ec53ab
Release 5.2.0.rc1
nbulaj May 23, 2019
551d9c8
fix token introspection configuration and response properly when intr…
linhdangduy May 24, 2019
0ed35c7
Merge pull request #1263 from linhdangduy/token_introspection_configu…
nbulaj May 28, 2019
adea1d2
Create FUNDING.yml
nbulaj May 29, 2019
aa2e7ce
Add #{before,after}_successful_authorization hooks in Doorkeeper::Tok…
fotos May 30, 2019
b21370d
Merge pull request #1264 from fotos/tokens-controller-authorization-h…
nbulaj Jun 6, 2019
d78c0b8
Use strong parameters for pre-authorization
stokarenko Jun 5, 2019
03b1437
Merge pull request #1266 from stokarenko/use-strong-parameters-for-pr…
nbulaj Jun 7, 2019
cc950bf
Update initializer template documentation
fotos Jun 7, 2019
57b32d7
Merge pull request #1269 from fotos/update-initializer-template-docum…
nbulaj Jun 7, 2019
dbd9414
Reintroduce existing token revocation for client credentials
ryansch Jun 10, 2019
608eb87
Add a Dockerfile for running specs where ruby isn't available
ryansch Jun 10, 2019
14f695b
Merge pull request #1272 from outstand/docker-tests
nbulaj Jun 11, 2019
41ab5b2
Merge pull request #1271 from outstand/revoke-existing-client-credent…
nbulaj Jun 13, 2019
4d7154b
Fix #1193: batch matching tokens for reuse_access_token
nbulaj Jun 10, 2019
00b4aa1
Merge pull request #1270 from doorkeeper-gem/dont-pollute-memory-on-m…
nbulaj Jun 14, 2019
d3539ad
Release 5.2.0rc2 :tada:
nbulaj Jun 17, 2019
12fc74f
Fix typo in initializer template
fotos Jun 17, 2019
235421a
Merge pull request #1274 from fotos/fix-typo-in-initializer
nbulaj Jun 17, 2019
62a304d
[ci skip] Fix PR number in Changelog
nbulaj Jun 19, 2019
bb64bd1
Use `find_by` instead of `find_by_id` in initializer template
okuramasafumi Jun 24, 2019
1a68d15
Merge pull request #1279 from okuramasafumi/patch-1
nbulaj Jun 25, 2019
988b043
Add Wealthsimple to Sponsors
Jul 2, 2019
25c5bda
Merge pull request #1282 from f3ndot/add-wealthsimple-to-sponsors
nbulaj Jul 3, 2019
17081a9
Allow to customize base metal controller
nbulaj Jul 4, 2019
99f83f0
Merge pull request #1283 from doorkeeper-gem/custom_base_metal_contro…
nbulaj Jul 5, 2019
dee3c6e
[ci skip] Improve gem spec
nbulaj Jul 18, 2019
901c7f2
Allow PreAuthorization#as_json method to take an optional attributes …
Jul 17, 2019
f72b1fc
Merge pull request #1288 from eulbat/fix-pre-auth-as-json-method
nbulaj Jul 20, 2019
8d22722
add rethinkdb to ORM list
stakach Jul 23, 2019
9a347c5
Merge pull request #1289 from stakach/patch-1
nbulaj Jul 23, 2019
2dfb41a
Add support of checking grant flow per application
nbulaj Jul 11, 2019
5277f4a
Merge pull request #1286 from doorkeeper-gem/grant_flows_per_application
nbulaj Jul 24, 2019
d4a7650
ci against 6.0.0.rc2
jasl Jul 24, 2019
5ee0f5b
move AR specific redirect uri validator to AR ORM directory
jasl Aug 1, 2019
8f79f73
Merge pull request #1293 from jasl/refactor-loading-validator
nbulaj Aug 2, 2019
6eda02d
Merge pull request #1294 from jasl/rails-6-rc2
nbulaj Aug 2, 2019
a3458b0
add client_id to permitted strong parameters
linhdangduy Aug 11, 2019
98a4036
Merge pull request #1296 from linhdangduy/add_client_id_to_strong_par…
nbulaj Aug 12, 2019
07a1419
limiting access to attributes of pre_authorization
linhdangduy Aug 13, 2019
367341b
Merge pull request #1300 from linhdangduy/limiting_access_to_attribut…
nbulaj Aug 14, 2019
33b3dcd
prevent requested scope be empty
linhdangduy Jun 19, 2019
a3c38cc
refactor error message test
linhdangduy Jun 28, 2019
1bc786c
change scopes column in access grants to not null
linhdangduy Jun 30, 2019
b996bc6
return invalid_request error for missing param at authorization request
linhdangduy Jul 3, 2019
1b1aca0
change exception handle at authorizations_controller
linhdangduy Jul 13, 2019
9266d1e
introducing InvalidRequestResponse for invalid request error, adding …
linhdangduy Jul 13, 2019
b4b42f9
change PR name
linhdangduy Jul 17, 2019
b4813ab
arrange validation code
linhdangduy Jul 17, 2019
f5ed883
delete unneeded code and add test when server doesn't support pkce
linhdangduy Jul 18, 2019
0fd5f3b
fix test coverage for create method of authorizations controller
linhdangduy Jul 18, 2019
c703aaf
return invalid_grant error when refresh_token is revoked
linhdangduy Aug 2, 2019
77aa134
refactor validate params at authorization_code_request
linhdangduy Aug 2, 2019
3787001
at authorization controller: build error_response by pre_authorizatio…
linhdangduy Aug 6, 2019
467e60a
pre_auth: add client_id validate, re-order code as order validate
linhdangduy Aug 14, 2019
1cb64e9
rebase and fix conflict based on pull request that pass client_id to …
linhdangduy Aug 14, 2019
b311483
Strong params fix for Rails forms
georgepalmer Aug 27, 2019
18ec4aa
Merge pull request #1298 from georgepalmer/master
nbulaj Aug 27, 2019
6a9b091
Merge pull request #1277 from linhdangduy/scope_param_on_authz_request
nbulaj Aug 28, 2019
8cc09f2
:tada: Bump to RC3
nbulaj Aug 28, 2019
d84885a
Use released Rails 6.0 in Travis
nbulaj Aug 28, 2019
4ee5be3
Fix Doorkeeper::ApplicationController inheritance
nbulaj Aug 29, 2019
45b6ce5
Merge pull request #1305 from doorkeeper-gem/opinionated-base-controller
nbulaj Aug 31, 2019
bef23f6
Release 5.2.0 :tada:
nbulaj Sep 16, 2019
2cb4b92
Fix interpolation of value to translation
Sep 16, 2019
6c9973a
Merge pull request #1306 from radek2r/fix_interpolation
nbulaj Sep 16, 2019
e70fd8c
Fixes Doorkeeper API mode
damianlegawiec Sep 17, 2019
ae5f86a
Merge pull request #1308 from damianlegawiec/patch-1
nbulaj Sep 17, 2019
de357b1
[ci skip] Update CHANGELOG
nbulaj Sep 17, 2019
b69df59
Release 5.2.1
nbulaj Sep 17, 2019
38bc1d5
Allow Doorkeeper::Application#to_json to work without arguments
kamillle Sep 21, 2019
db8f138
Merge pull request #1309 from kamillle/revert_AR#to_json_behavior
nbulaj Sep 23, 2019
3e39c93
Fix specs to be ORM agnostic
nbulaj Sep 26, 2019
5502d9f
Make authorization_code_request_spec ORM agnostic
nbulaj Sep 26, 2019
84199b7
.editorconfig
nbulaj Sep 27, 2019
1b6c002
Update GitHub template
nbulaj Oct 2, 2019
689d155
Make it easier to reset an application secret (#1315)
stefanwork Oct 17, 2019
2fdae43
Call configured authenticate_resource_owner block once per request.
stevehodges Oct 18, 2019
07844ac
Merge pull request #1320 from stevehodges/master
nbulaj Oct 19, 2019
326a75a
Use other rspec-rails branch
nbulaj Oct 24, 2019
1332d8b
Release 5.2.2 :tada:
nbulaj Nov 10, 2019
9837699
move response type checking to a method to be easily to override
linhdangduy Nov 13, 2019
ad68a38
Merge pull request #1326 from linhdangduy/check_response_type_in_anot…
nbulaj Nov 14, 2019
d446dc2
require the validator where it is needed to work for apps that lazy-load
grosser Nov 24, 2019
c075df5
Merge pull request #1331 from grosser/grosser/require
nbulaj Nov 30, 2019
9262a30
avoid setting flash type so it does not define extra methods/unexpect…
grosser Nov 28, 2019
1605aa4
Fix find_in_batches order warning (#1329)
vinc Dec 7, 2019
a795b0a
Merge pull request #1334 from grosser/grosser/flash
nbulaj Dec 7, 2019
23e9c03
Release 5.2.3 :tada:
nbulaj Dec 12, 2019
5537dc0
Fix typo in changelog
ionut998 Dec 12, 2019
68a005a
Merge pull request #1337 from ionut998/fix_typo_in_changelog
nbulaj Dec 16, 2019
fdf22ee
Add Ruby 2.7 to Travis matrix
nbulaj Dec 26, 2019
8a85039
Update RSpec branch
nbulaj Dec 26, 2019
909951e
[ci skip] Fix
nbulaj Dec 26, 2019
1992fcf
Fix #1338
nbulaj Dec 31, 2019
4822bc0
Fix Ruby 2.7 kwargs warning in InvalidTokenResponse
oshow Jan 16, 2020
59ff62a
Merge pull request #1343 from oshow/fix-keyword-args-warning
nbulaj Jan 17, 2020
996ec87
Remove deprecated code, set rspec-rails version
nbulaj Jan 17, 2020
4171d0b
Allow to configure Doorkeeper models
nbulaj Dec 12, 2019
ad7e17b
Merge pull request #1345 from doorkeeper-gem/configurable-models
nbulaj Jan 17, 2020
7b76f89
Fix #1344: use `#as_json` instead of `#to_json`
nbulaj Jan 17, 2020
da1d8d0
Merge pull request #1346 from doorkeeper-gem/fix-1344
nbulaj Jan 17, 2020
ce628e7
Update rspec-rails requirement from 4.0.0.beta3 to 4.0.0.beta4
dependabot-preview[bot] Jan 20, 2020
8b6ec2f
Merge pull request #1348 from doorkeeper-gem/dependabot/bundler/rspec…
nbulaj Jan 20, 2020
43b620e
Ensure `Doorkeeper::Application` AR associations always use `applicat…
moiristo Jan 20, 2020
46f6b17
Merge pull request #1349 from bookingexperts/master
nbulaj Jan 21, 2020
4981596
Fix revoked_on_use with hashed secrets (#1341)
tritrg Jan 24, 2020
430f8dd
Small code refactoring
nbulaj Jan 24, 2020
fad9cec
Code refactoring
nbulaj Jan 28, 2020
ceed2b5
Merge pull request #1351 from doorkeeper-gem/refactoring
nbulaj Jan 28, 2020
52dc279
Apply new style guide rule
nbulaj Jan 28, 2020
cb2b56d
[ci skip] fix
nbulaj Jan 28, 2020
8fec40d
Improve code style
nbulaj Jan 29, 2020
b9c4d7c
Make revocation of access tokens optional
nbulaj Jan 29, 2020
938b7e2
Merge pull request #1353 from doorkeeper-gem/revokation-client-creden…
nbulaj Jan 29, 2020
38b7333
[ci skip] Release 5.3.0 :tada:
nbulaj Jan 29, 2020
78c822b
Small code refactoring
nbulaj Jan 31, 2020
76dbd2a
Invalidate duplicated scopes for Access Tokens/Grants
nbulaj Jan 31, 2020
f34f897
Merge pull request #1356 from doorkeeper-gem/invalidate-duplicated-sc…
nbulaj Jan 31, 2020
1a156b4
Fix #1312
Feb 4, 2020
a34282c
Merge pull request #1357 from eulbat/fix-1312
nbulaj Feb 4, 2020
a7721c4
Make Doorkeeper option DSL reusable for extensions
nbulaj Feb 4, 2020
620fcf9
Merge pull request #1359 from doorkeeper-gem/refactor-options-DSL
nbulaj Feb 5, 2020
4d5894b
Deprecate active_record_options config option
nbulaj Feb 4, 2020
ba3c959
Merge pull request #1358 from doorkeeper-gem/deprecate-active_record_…
nbulaj Feb 5, 2020
015a062
Introduce polymorphic resource owner
nbulaj Jan 31, 2020
2e48a90
Merge pull request #1355 from doorkeeper-gem/polymorphic-resource-owner
nbulaj Feb 7, 2020
9f0af2c
[ci skip] Fix README
nbulaj Feb 7, 2020
df87749
add option to define a resource owner's ability to access an applicat…
JoshNorthrup Jan 25, 2020
6004459
Merge pull request #1354 from JoshNorthrup/user-application-access-co…
nbulaj Feb 9, 2020
5795bc2
Add `authorize_resource_owner_for_client` to initializer
nbulaj Feb 9, 2020
7fd62e6
Add `token_lookup_batch_size` config option
nbulaj Feb 9, 2020
1b2baed
Merge pull request #1360 from doorkeeper-gem/allow-to-increase-token-…
nbulaj Feb 9, 2020
bd68c81
[ci skip] Backports
nbulaj Feb 9, 2020
99ab2f2
Fix the broken link for GuardRails badge in README [ci skip]
giraffate Feb 26, 2020
9f2838c
use unshift instead of push for updating LOAD_PATH
pravi Feb 27, 2020
e112c3b
Merge pull request #1363 from giraffate/fix_the_broken_link_for_Guard…
nbulaj Feb 27, 2020
40008f8
Merge pull request #1365 from pravi/pravi-patch-1
nbulaj Feb 27, 2020
60a0f27
Fixes #1364. Sets expiry of token generated using refresh_token to th…
rishabhsairawat Mar 1, 2020
f1784d9
Reference `CONTRIBUTING.md` directly [ci skip]
giraffate Mar 2, 2020
75750c8
Merge pull request #1367 from giraffate/readme_md_refer_to_contributi…
nbulaj Mar 2, 2020
e523c64
Merge pull request #1366 from rishabhsairawat/master
nbulaj Mar 4, 2020
5ab1345
Add comments to revocation / introspection
nbulaj Mar 5, 2020
fe73622
Fix controllers to use valid classes in case Doorkeeper has custom mo…
nbulaj Mar 6, 2020
99d43fd
Merge pull request #1371 from doorkeeper-gem/fix-controllers-with-cus…
nbulaj Mar 6, 2020
d194bc4
Fix token revocation endpoint
nbulaj Mar 6, 2020
f0014af
Merge pull request #1370 from doorkeeper-gem/fix-token-revocation-1362
nbulaj Mar 6, 2020
4396682
Allow to work with bin/console like with app
nbulaj Mar 9, 2020
0dc9a39
[ci skip] Update README
nbulaj Mar 9, 2020
be18bf7
Make Doorkeeper routes mapping reusable in extensions
nbulaj Mar 12, 2020
3fcaff1
Merge pull request #1373 from doorkeeper-gem/make-routing-reusable
nbulaj Mar 12, 2020
415ffad
Revoke and issue client credentials token in a transaction
ryansch Mar 12, 2020
6ba6664
Upgrade ruby/bundler in Dockerfile
ryansch Mar 12, 2020
0c29584
Merge pull request #1375 from outstand/update-dockerfile
nbulaj Mar 12, 2020
e780d84
Merge pull request #1374 from outstand/revoke-in-transaction
nbulaj Mar 13, 2020
6427f0c
ORM dependent
nbulaj Mar 24, 2020
458b0ab
Drop MongoMapper support
nbulaj Mar 24, 2020
1af003d
ORM dependent, p.2
nbulaj Mar 24, 2020
c44c7f8
Merge remote-tracking branch 'origin/master'
nbulaj Mar 24, 2020
6d936d8
Update rspec-rails requirement from 4.0.0.beta3 to 4.0.0
dependabot-preview[bot] Mar 25, 2020
96489b3
Update to RSpec 4
nbulaj Mar 26, 2020
d5dc678
Merge pull request #1383 from doorkeeper-gem/update-rspec
nbulaj Mar 26, 2020
0d34e6b
Add context for authorization hooks
nbulaj Mar 27, 2020
acc0ceb
Merge pull request #1384 from doorkeeper-gem/context-in-authorization…
nbulaj Mar 28, 2020
9704254
[ci skip] Add hooks description to initializer template
nbulaj Mar 28, 2020
6eecfd5
Change attr_accessor to attr_reader
nbulaj Mar 28, 2020
5e38e79
Merge pull request #1385 from doorkeeper-gem/bye_attr_accessors
nbulaj Mar 28, 2020
8d15ef7
Add issued token to auth hook context
nbulaj Mar 31, 2020
140b24c
Merge pull request #1388 from doorkeeper-gem/add-issued-token-to-hook…
nbulaj Mar 31, 2020
606ef36
Add AccessToken#create_for and use in RefreshTokenRequest
ryansch Mar 30, 2020
50efdb0
Merge pull request #1387 from outstand/refactor-refresh-token-request
nbulaj Apr 1, 2020
ac40a8d
[ci skip] Clarification
nbulaj Apr 1, 2020
d1a5c68
Add GH action to check ORM changes
nbulaj Apr 1, 2020
efd95f3
Add a note for backward incompatible change to CHANGELOG [ci skip]
giraffate Apr 2, 2020
8f09c5c
Merge pull request #1391 from giraffate/update_changelog_for_backward…
nbulaj Apr 2, 2020
c20947c
Code refactoring
nbulaj Apr 2, 2020
2fa2e27
Fix & improve polymorphic_resource_owner generator
nbulaj Apr 2, 2020
a5ac84b
Fix/enable_polymorphic_resource_owner generator (#1392)
Andy-Bell Apr 2, 2020
077ee89
[ci skip] Improve CHANGELOG.md
nbulaj Apr 2, 2020
58bbde2
Fix migration & generator
nbulaj Apr 2, 2020
d24ba09
[ci skip] Change test example desc
nbulaj Apr 2, 2020
6b5d681
Improve Applications #show page
nbulaj Apr 3, 2020
17017ec
Merge pull request #1393 from doorkeeper-gem/improve-applications-sho…
nbulaj Apr 3, 2020
d228346
Use autoload to load all gem requirements
nbulaj Apr 7, 2020
d520b69
Merge pull request #1394 from doorkeeper-gem/use-autoload
nbulaj Apr 7, 2020
d5fff38
[ci skip] Update CHANGELOG
nbulaj Apr 7, 2020
206cc09
[ci skip] class_methods => ClassMethods
nbulaj Apr 7, 2020
1274233
[skip ga] Other actions tag
nbulaj Apr 7, 2020
707fcc3
Code refactoring
nbulaj Apr 7, 2020
ec060bc
Release 5.4.0.rc1
nbulaj Apr 8, 2020
ca0496f
[ci skip] Decrease gem size
nbulaj Apr 8, 2020
de7cdc6
[ga skip] Fix Rake tasks
nbulaj Apr 8, 2020
ae7ce21
Merge pull request #1395 from doorkeeper-gem/fix-rake-tasks
nbulaj Apr 8, 2020
1ef905a
[ga skip] Docs, refactoring
nbulaj Apr 9, 2020
6d92f01
Use a fixed input field prefix inside the application form
Apr 11, 2020
884686f
Merge pull request #1397 from s-andringa/master
nbulaj Apr 12, 2020
66f617f
Test spec for Password flow using basic auth
nbulaj Apr 13, 2020
4375bd8
Add more comments for migration template
nbulaj Apr 13, 2020
7f6d449
[ci skip][ga skip] Update CHANGELOG
nbulaj Apr 15, 2020
4bcf3ee
Yield application to allow_grant_flow_for_client? client credentials …
aclemons Apr 15, 2020
ec9e7ea
Merge pull request #1400 from aclemons/client_credentials_validation
nbulaj Apr 15, 2020
83481e8
In addition to #1400: fix app instance for Password grant type
nbulaj Apr 15, 2020
901aa93
Update danger requirement from ~> 6.0 to ~> 7.0
dependabot-preview[bot] Apr 17, 2020
25dba97
Merge pull request #1401 from doorkeeper-gem/dependabot/bundler/dange…
nbulaj Apr 23, 2020
ca3b644
Handle trying authorization with client credentials (#1402)
Apr 30, 2020
25d0380
Merge pull request from GHSA-j7vx-8mqj-cqp9
stefansundin May 2, 2020
b9adf37
Release 5.4.0.rc2 :tada:
nbulaj May 2, 2020
b275c6a
Update spec to consider all Rails versions
nbulaj May 2, 2020
e244864
Use defined ORM in config blocks in specs
nbulaj May 5, 2020
e98454c
Make Doorkeeper::Application#read_attribute_for_serialization public.
irphilli May 6, 2020
b5a0c16
Update danger requirement from ~> 7.0 to ~> 8.0
dependabot-preview[bot] May 7, 2020
7e39c20
Merge pull request #1404 from irphilli/master
nbulaj May 7, 2020
7e3cab7
[ci skip] Update CHANGELOG.md
nbulaj May 7, 2020
384e7b0
Merge pull request #1405 from doorkeeper-gem/dependabot/bundler/dange…
nbulaj May 7, 2020
f47f07c
[ci skip] Benchmark stub
nbulaj May 8, 2020
034d87e
Code refactoring
nbulaj May 8, 2020
f0bd292
Release 5.4.0 :tada:
nbulaj May 11, 2020
fa76a2f
Add spec for password grant flow to ensure returns expires_in
nbulaj May 12, 2020
7d41fd6
Get rid of redundant and complex to support helpers in tests
nbulaj May 12, 2020
58518f9
[ci skip] fixes for linter
nbulaj May 12, 2020
f352a56
Merge pull request #1407 from doorkeeper-gem/remove-json-helpers-from…
nbulaj May 12, 2020
ecad35f
Add rubocop-rspec
nbulaj May 12, 2020
3f8950e
Merge pull request #1408 from doorkeeper-gem/rubocop-rspec
nbulaj May 12, 2020
88aea0f
Rubocop-rspec
nbulaj May 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service_name: travis-ci
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*.{rb,json}]
indent_style = space
indent_size = 2
insert_final_newline = true
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# These are supported funding model platforms

open_collective: doorkeeper-gem
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
### Steps to reproduce
What we need to do to see your problem or bug?

The more detailed the issue, the more likely that we will fix it ASAP.

Don't use GitHub issues for questions like "How can I do that?" —
use [StackOverflow](https://stackoverflow.com/questions/tagged/doorkeeper)
instead with the corresponding tag.

### Expected behavior
Tell us what should happen

### Actual behavior
Tell us what happens instead

### System configuration
You can help us to understand your problem if you will share some very
useful information about your project environment (don't forget to
remove any confidential data if it exists).

**Doorkeeper initializer**:

```ruby
# config/initializers/doorkeeper.rb
Doorkeeper.configure do
# ...
end
```

**Ruby version**: ``

**Gemfile.lock**:

<details>
<summary>Gemfile.lock content</summary>

```
Place your Gemfile.lock content here
```
</details>
17 changes: 17 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
### Summary

Provide a general description of the code changes in your pull
request... were there any bugs you had fixed? If so, mention them. If
these bugs have open GitHub issues, be sure to tag them here as well,
to keep the conversation linked together.

### Other Information

If there's anything else that's important and relevant to your pull
request, mention that information here. This could include
benchmarks, or other information.

If you are updating CHANGELOG.md file or are asked to update it by reviewers,
please add the changelog entry at the top of the file.

Thanks for contributing to Doorkeeper project!
18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- bug
- pinned
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
59 changes: 59 additions & 0 deletions .github/workflows/check_orm_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Check ORM changes
on:
push:
branches:
- master
jobs:
check_orm_changes_and_notify:
name: Notify ORM extensions about required code updates
runs-on: ubuntu-latest
if: |
!contains(github.event.head_commit.message, 'ga skip') &&
!contains(github.event.head_commit.message, 'skip ga')
env:
ISSUE_TITLE: "ORM requires update due to latest Doorkeeper changes"
ISSUE_BODY: |
Doorkeeper has ORM changes merged to `master` branch.

See https://github.com/doorkeeper-gem/doorkeeper/commit/${{ github.sha }} for the details.
ISSUE_LABELS: ORM
steps:
- name: List & cache git modified files
id: changed_files
uses: lots0logs/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Check if ORM files were changed
id: check_orm_files
run: |
changed_files=$(cat ${HOME}/files.json)

if [[ $changed_files == *"lib/doorkeeper/orm/active_record"* ]] || \
[[ $changed_files == *"lib/doorkeeper/models/"* ]];
then
echo "ORM files changes detected!"
echo "::set-env name=ORM_CHANGES::yes"
else
echo "No changes in ORM files, exiting"
fi
- name: Create an issue for Mongo extension
id: create_mongodb_issue
if: env.ORM_CHANGES == 'yes'
uses: maxkomarychev/[email protected]
with:
token: ${{ secrets.DOORKEEPER_ACTIONS_TOKEN }}
title: ${{ env.ISSUE_TITLE }}
body: ${{ env.ISSUE_BODY }}
repo: doorkeeper-mongodb
labels: ${{ env.ISSUE_LABELS}}
- name: Create an issue for Sequel extension
id: create_sequel_issue
if: env.ORM_CHANGES == 'yes'
uses: maxkomarychev/[email protected]
with:
token: ${{ secrets.DOORKEEPER_ACTIONS_TOKEN }}
title: ${{ env.ISSUE_TITLE }}
body: ${{ env.ISSUE_BODY }}
owner: nbulaj
repo: doorkeeper-sequel
labels: ${{ env.ISSUE_LABELS}}
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ pkg/
spec/dummy/db/*.sqlite3
spec/dummy/log/*.log
spec/dummy/tmp/
spec/generators/tmp
Gemfile.lock
gemfiles/*.lock
spec/generators/tmp
.rvmrc
*.swp

.idea
/.yardoc/
/_yardoc/
/doc/
/rdoc/
coverage
*.gem
gemfiles/vendor
3 changes: 3 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
rubocop:
config_file: .rubocop.yml
version: 0.80.0
100 changes: 100 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
TargetRubyVersion: 2.4
Exclude:
- "spec/generators/tmp/**/*"
- "spec/dummy/db/*"
- "spec/dummy/config/*"
- "Dangerfile"
- "gemfiles/*.gemfile"
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/TrailingEmptyLines:
Enabled: true
Layout/DotPosition:
EnforcedStyle: leading
Layout/LineLength:
Exclude:
- spec/**/*
Max: 100
Metrics/BlockLength:
Exclude:
- spec/**/*
- lib/doorkeeper/rake/*
- doorkeeper.gemspec
Metrics/MethodLength:
Exclude:
- spec/dummy/db/**/*
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
Style/FrozenStringLiteralComment:
Enabled: true
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: consistent_comma
Style/SymbolArray:
MinSize: 3
Style/WordArray:
MinSize: 3
Style/ClassAndModuleChildren:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true

Rails/DynamicFindBy:
Whitelist:
- find_by_sql
- find_by_plaintext_token
- find_by_fallback_token
Rails/HttpPositionalArguments:
Exclude:
- spec/grape/*
Rails/HttpStatus:
Enabled: false
Rails/RakeEnvironment:
Exclude:
- Rakefile
Rails/ReflectionClassName:
Exclude:
- "lib/doorkeeper/orm/active_record/mixins/access_grant.rb"
- "lib/doorkeeper/orm/active_record/mixins/access_token.rb"
- "lib/doorkeeper/orm/active_record/mixins/application.rb"
Rails/SkipsModelValidations:
Enabled: false

RSpec/BeforeAfterAll:
Exclude:
- "spec/routing/scoped_routes_spec.rb"
- "spec/routing/custom_controller_routes_spec.rb"
RSpec/ContextWording:
Exclude:
- "spec/support/shared/controllers_shared_context.rb"
RSpec/DescribeClass:
Enabled: false
RSpec/ExampleLength:
Enabled: false
RSpec/FilePath:
Enabled: false
RSpec/MultipleExpectations:
Enabled: false
RSpec/NestedGroups:
Enabled: false
Capybara/FeatureMethods:
Enabled: false
107 changes: 107 additions & 0 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-05-12 19:53:39 +0300 using RuboCop version 0.82.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 61

# Offense count: 2
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 230

# Offense count: 4
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 209

# Offense count: 13
RSpec/AnyInstance:
Exclude:
- 'spec/generators/previous_refresh_token_generator_spec.rb'
- 'spec/lib/models/revocable_spec.rb'
- 'spec/lib/oauth/authorization_code_request_spec.rb'
- 'spec/lib/oauth/client_credentials/creator_spec.rb'
- 'spec/lib/oauth/password_access_token_request_spec.rb'
- 'spec/lib/oauth/token_request_spec.rb'
- 'spec/requests/flows/authorization_code_spec.rb'
- 'spec/requests/flows/refresh_token_spec.rb'

# Offense count: 297
# Configuration parameters: AssignmentOnly.
RSpec/InstanceVariable:
Exclude:
- 'spec/lib/option_spec.rb'
- 'spec/models/doorkeeper/application_spec.rb'
- 'spec/requests/applications/applications_request_spec.rb'
- 'spec/requests/applications/authorized_applications_spec.rb'
- 'spec/requests/endpoints/authorization_spec.rb'
- 'spec/requests/endpoints/token_spec.rb'
- 'spec/requests/flows/authorization_code_errors_spec.rb'
- 'spec/requests/flows/authorization_code_spec.rb'
- 'spec/requests/flows/implicit_grant_errors_spec.rb'
- 'spec/requests/flows/implicit_grant_spec.rb'
- 'spec/requests/flows/password_spec.rb'
- 'spec/requests/flows/refresh_token_spec.rb'
- 'spec/requests/flows/skip_authorization_spec.rb'
- 'spec/requests/protected_resources/metal_spec.rb'
- 'spec/requests/protected_resources/private_api_spec.rb'

# Offense count: 22
RSpec/LeakyConstantDeclaration:
Exclude:
- 'spec/controllers/authorizations_controller_spec.rb'
- 'spec/controllers/protected_resources_controller_spec.rb'
- 'spec/lib/config_spec.rb'
- 'spec/lib/option_spec.rb'
- 'spec/models/doorkeeper/access_token_spec.rb'

# Offense count: 7
RSpec/MessageChain:
Exclude:
- 'spec/controllers/authorizations_controller_spec.rb'
- 'spec/controllers/tokens_controller_spec.rb'

# Offense count: 94
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
EnforcedStyle: receive

# Offense count: 427
# Configuration parameters: IgnoreSharedExamples.
RSpec/NamedSubject:
Enabled: false

# Offense count: 40
RSpec/SubjectStub:
Exclude:
- 'spec/lib/models/expirable_spec.rb'
- 'spec/lib/models/reusable_spec.rb'
- 'spec/lib/models/revocable_spec.rb'
- 'spec/lib/oauth/base_request_spec.rb'
- 'spec/lib/oauth/client_credentials_request_spec.rb'
- 'spec/lib/secret_storing/base_spec.rb'
- 'spec/support/shared/models_shared_examples.rb'

# Offense count: 74
# Configuration parameters: IgnoreNameless, IgnoreSymbolicNames.
RSpec/VerifiedDoubles:
Enabled: false

# Offense count: 5
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'lib/doorkeeper/config.rb'
- 'lib/doorkeeper/helpers/controller.rb'
- 'lib/doorkeeper/oauth/client/credentials.rb'
- 'lib/doorkeeper/oauth/helpers/scope_checker.rb'
- 'lib/doorkeeper/oauth/token.rb'
Loading