Commit Graph

61 Commits (34cd91cc86a89d623aa811f11316640db12ea91c)

Author SHA1 Message Date
Robin Appelman aa15f9d16d
chore: run rector 6 months ago
Ferdinand Thiessen 5981b7eb51
chore: apply new CSFixer rules 6 months ago
Richard Steinmetz 246da73a36
fix(oauth2): retain support for legacy ownCloud clients 9 months ago
Côme Chilliet 64863c9d46
chore: Apply new rector configuration to apps folder 11 months ago
Côme Chilliet 75f8bb51ed fix: Rename config option to skipAuthPickerApplications to match what it does 1 year ago
Côme Chilliet cca0e84480 feat(oauth2): Add a test for skipping auth page 1 year ago
Côme Chilliet 99e0867f0a chore: Adapt tests to added constructor parameters 1 year ago
Côme Chilliet 1580c8612b
chore(apps): Apply new rector configuration to autouse classes 1 year ago
Côme Chilliet 1a4978c4ea
chore: Apply rector configuration to apps folder 1 year ago
provokateurin 9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1 1 year ago
Christoph Wurst 49dd79eabb
refactor: Add void return type to PHPUnit test methods 1 year ago
Julien Veyssier 120e7e838c
fix(oauth2): fix tests 1 year ago
Julien Veyssier 034917b790
fix(oauth2): store hashed secret instead of encrypted 1 year ago
Artur Neumann 84ee79fe43 fix: expect invalidateTokensOfUser only be called for seen users 1 year ago
Andy Scherzinger cc1686dba9
chore: Add SPDX header 2 years ago
Joas Schilling aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1 2 years ago
Julien Veyssier 32f984c520
adjust oauth tests 2 years ago
Julien Veyssier c6da99474e
rename oauth2_access_token's created_at to code_created_at 2 years ago
Julien Veyssier ddfc124767
add test for refusing to get an oauth token from a code when we're not in authorization state 2 years ago
Julien Veyssier 2995b0948f
add tests for oauth2 authorization code expiration 2 years ago
Julien Veyssier 807f173dec
make oauth2 authorization code expire after 10 minutes 2 years ago
Joas Schilling 25309bcb45
techdebt(DI): Use public IThrottler interface which exists since Nextcloud 25 2 years ago
Julien Veyssier 629adc318f add bruteforce protection in OauthApiController 3 years ago
Julien Veyssier 8086d7e41b add test that inserts a long oauth client secret 3 years ago
Julien Veyssier 808819a4d0
fix oauth2 tests 3 years ago
Julien Veyssier 18c742a901
encrypt oauth2 client secrets 3 years ago
Artur Neumann e97540b9c6
move mocks into private variables 3 years ago
Artur Neumann 707e69b203
adjust SettingsController tests 3 years ago
Artur Neumann 21be557e2a
invalidate existing tokens when deleting an oauth client 3 years ago
Côme Chilliet 9b26c4a277
Fix PHP error on PHP >= 8.2 about dynamic property use in tests 3 years ago
Côme Chilliet 539162ba8b
Remove at matchers from tests in: 3 years ago
Carl Schwan 53db418ee9 Cleanup oauth2 admin settings 4 years ago
Joas Schilling 617528312a
Fix last tests 4 years ago
Joas Schilling c6ae53096c
More test fixing 4 years ago
John Molakvoæ (skjnldsv) 215aef3cbd
Update php licenses 5 years ago
Christoph Wurst d89a75be0b
Update all license headers for Nextcloud 21 5 years ago
Joas Schilling 39131519b2
Make the test pass on repeating calls 5 years ago
Christoph Wurst 2a054e6c04
Update the license headers for Nextcloud 20 5 years ago
Morris Jobke 234b510652
Change PHPDoc type hint from PHPUnit_Framework_MockObject_MockObject to \PHPUnit\Framework\MockObject\MockObject 5 years ago
Christoph Wurst 1a9330cd69
Update the license headers for Nextcloud 19 6 years ago
Christoph Wurst 2ee65f177e
Use the shorter phpunit syntax for mocked return values 6 years ago
Daniel Kesselberg 509af24bc9
Fix invalid instantiation of TemplateResponse if client not found 6 years ago
Christoph Wurst 5bf3d1bb38
Update license headers 6 years ago
Roeland Jago Douma 3a7cf40aaa
Mode to modern phpunit 6 years ago
Roeland Jago Douma c007ca624f
Make phpunit8 compatible 6 years ago
Roeland Jago Douma 68748d4f85
Some php-cs fixes 6 years ago
Roeland Jago Douma 9e2bb5ef36 Move oauth admin settings to initialstate 6 years ago
Roeland Jago Douma 470318db36
Fix the actual oauth2 tests 7 years ago
Roeland Jago Douma 1e6711305a
Fail gracefull if an unkown oauth2 client tries to authenticate 7 years ago
Roeland Jago Douma 674930da7f
Move ExpiredTokenException to the correct namespace 7 years ago