Commit Graph

48 Commits (ba94de2510b3858f10d60f0230a58b1252346372)

Author SHA1 Message Date
Côme Chilliet eee9f1eec4 Always catch OCP versions of authentication exceptions 2 years ago
Joas Schilling aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1 2 years ago
Julien Veyssier d56950a6c9
adjust phpdoc types in OauthApiController 2 years ago
Julien Veyssier c6da99474e
rename oauth2_access_token's created_at to code_created_at 2 years ago
Julien Veyssier 779e1d51ac
delete oauth access token when receiving a code that has expired 2 years ago
Julien Veyssier 1ab45bad5d
refuse oauth authorization code if a token has already been delivered (active token) 2 years ago
Julien Veyssier 7bba410997
cleanup access tokens that are still in authorization state and that have expired 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
jld3103 1c19c567fe
oauth2: Add OpenAPI spec 3 years ago
Julien Veyssier 629adc318f add bruteforce protection in OauthApiController 3 years ago
Julien Veyssier 18c742a901
encrypt oauth2 client secrets 3 years ago
Artur Neumann f634badf12
public interface to invalidate tokens of user 3 years ago
Artur Neumann 21be557e2a
invalidate existing tokens when deleting an oauth client 3 years ago
luz paz 9d26671f05 Fix typos in apps/ subdirectory 3 years ago
Joas Schilling c6ae53096c
More test fixing 4 years ago
J0WI 3b656446af Introduce ISecureRandom::CHAR_ALPHANUMERIC 5 years ago
John Molakvoæ (skjnldsv) 215aef3cbd
Update php licenses 5 years ago
Christoph Wurst cb057829f7
Update license headers for 19 6 years ago
Christoph Wurst 28f8eb5dba
Add visibility to all constants 6 years ago
Christoph Wurst caff1023ea
Format control structures, classes, methods and function 6 years ago
Christoph Wurst 44577e4345
Remove trailing and in between spaces 6 years ago
Christoph Wurst 1a9330cd69
Update the license headers for Nextcloud 19 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 68748d4f85
Some php-cs fixes 6 years ago
Roeland Jago Douma 9e2bb5ef36 Move oauth admin settings to initialstate 6 years ago
Roeland Jago Douma b9ac258870
Strict controllers 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
Roeland Jago Douma 75456b057d
Reset bruteforce on token refresh OAuth 7 years ago
Patrik Kernstock 8f9fa9ee13 Remove filter_var flags due to PHP 7.3 deprecation, fixes #10894 7 years ago
rakekniven 8370111cf4
Update SettingsController.php 8 years ago
Roeland Jago Douma 555de27567
Validate OAuth2 redirect uri 8 years ago
Roeland Jago Douma 1ccb36a0f1
Cleanup Controller 8 years ago
Roeland Jago Douma d2d1e8e375
Migrate OAuth Admin settings to vue 8 years ago
Roeland Jago Douma 3556e78c25
The OAuth endpoint needs to support Basic Auth 8 years ago
Roeland Jago Douma 5a97148863
Don't use special chars to avoid confusion 8 years ago
Roeland Jago Douma f7ecec855b
Rotate token 8 years ago
Roeland Jago Douma c28b25c4f0
Authenticate the clients on requesting a token 8 years ago
Roeland Jago Douma 4e3aef22a1
Fail if the response type is not properly set 8 years ago
Roeland Jago Douma 49795d2006
Set OAuth token expiration 8 years ago
Lukas Reschke b07a0f51ba
Add OAuth state to session 9 years ago
Lukas Reschke 88afd8b224
Cleanup code 9 years ago
Bjoern Schiessle 1eb7f4956b
delete auth token when client gets deleted 9 years ago
Lukas Reschke 4b4d3bb1c2
It's a bearer 9 years ago
Lukas Reschke 5f71805c35
Add basic implementation for OAuth 2.0 Authorization Code Flow 9 years ago