1
0
mirror of https://github.com/owncloud/android-library.git synced 2026-08-11 16:33:03 +00:00
Commit Graph

385 Commits

Author SHA1 Message Date
David A. Velasco dd2d3b8996 Extend chance of silent refresh of auth token in RemoteOperations that are run with execute(...) methods receiving OwnCloudClients 2017-08-14 14:46:08 +02:00
David A. Velasco c7ade613c6 Clean-up and minor refactor after review 2017-08-04 14:48:39 +02:00
David A. Velasco 02f35d5f5e Remove deprecated methods for update to version 1.0 2017-08-04 11:11:37 +02:00
David A. Velasco a4386bb4fe Allow client objects to decide if RemoteOperations should silently refresh access token when expired 2017-08-02 18:43:07 +02:00
davigonz c04f6e3463 Create new method to retry synchronous and asynchronous remote operations 2017-08-02 12:25:38 +02:00
davigonz 7f98b3804c Include refresh token grantype before throwing an exception when building oauth2 operation 2017-08-01 17:09:04 +02:00
davigonz 99334c2e45 Include refresh token operation in library, builder 2017-08-01 11:55:47 +02:00
davigonz aa717b3e7b Use proper grant type to get new access token using refresh token 2017-07-31 10:47:20 +02:00
David A. Velasco ae8e3ca904 Simplify operation to refresh OAuth2 access token 2017-07-25 19:04:59 +02:00
davigonz 95fdf75d38 Rename get refreshed access token operation 2017-07-25 12:17:32 +02:00
davigonz c6f8430876 Move OAuth2GetRefreshedAccessTokenOperation to the library and prepare RemoteOperation to retry the last failed operation when access token expires 2017-07-25 12:14:22 +02:00
David A. Velasco a06af810d0 Invalidate stored auth token directly from RemoteOperation when request results UNAUTHORIZED 2017-07-25 09:35:22 +02:00
David A. Velasco 0dc859c071 Move OAuth2 support classes from app to library 2017-07-21 13:30:29 +02:00
davigonz a1b1c2f9ed Invalidate the client token when access token expires and try the last operation [WIP] 2017-07-20 11:10:13 +02:00
davigonz fe947194c5 Add constant to save refresh token in account 2017-07-20 11:10:13 +02:00
davigonz 2df2cde466 Rename getAuthernticateHeader method 2017-07-20 11:10:13 +02:00
davigonz f6ee1a15cb Reading several authenticate headers from http response 2017-07-20 11:10:13 +02:00
David A. Velasco e4b57e8063 WIP 2017-07-20 11:10:13 +02:00
davigonz b074c34cbc Refactor code 2017-07-11 09:29:33 +02:00
davigonz 4b2c32511b Improve feedback when uploading virus files 2017-07-11 09:29:33 +02:00
davigonz 5d99c9db32 Include support_upload_only capability in get capabilities operation 2017-06-28 09:56:48 +02:00
davigonz 7b1a5cdee9 Include a new minimun version with write only public sharing 2017-06-26 09:16:09 +02:00
davigonz 137a892d2e Improve comments 2017-06-16 11:43:18 +02:00
davigonz bcb6c2c106 Update permissions when updating share via link 2017-06-16 11:07:06 +02:00
davigonz e7b2dde940 Adding support upload only field to OCCapability 2017-06-14 11:15:16 +02:00
davigonz 5493227dd6 Adding supports_upload_only capability [WIP] 2017-06-09 11:51:03 +02:00
David A. Velasco defbfc8d0e Revert "Add support for capability to show optional warning about public shares"
This reverts commit 6d0773cf34.
2017-05-11 09:57:47 +02:00
David A. Velasco c9a06fc5e4 Fix NullPointerException in update of public shares while keeping compatibility of the operation with servers not supporting 'name' property in shares 2017-05-10 15:34:22 +02:00
davigonz a034338290 Fix wrong or no update parameter given in servers < 10 2017-05-09 18:18:22 +02:00
davigonz beb9be05de Fix hide + button to create a public share in servers <10 2017-05-09 09:05:21 +02:00
David A. Velasco 8f5ac456ab Prevent send of empty value for expiration date and link name when public share is created 2017-05-05 13:26:47 +02:00
David A. Velasco 6d0773cf34 Add support for capability to show optional warning about public shares 2017-05-05 13:26:47 +02:00
davigonz 8ae4dd137d Added multiple share links to the capabilities 2017-05-05 13:26:47 +02:00
davigonz e80b50d4de Get public share name instead of token when using public share getName method and there's no name 2017-05-05 13:26:47 +02:00
davigonz 8f3aeb30ed Use the token instead of the path when a public link has been created with no name 2017-05-05 13:26:47 +02:00
David A. Velasco ee726119cb Clarify absence and patch of URL field of OCShares 2017-05-05 13:26:47 +02:00
davigonz dda1429581 Create public link [WIP] 2017-05-05 13:26:47 +02:00
David A. Velasco 188ce07155 Add support for optional name in public shares (WIP) 2017-05-05 13:26:47 +02:00
David A. Velasco 11363adedb Clean up after CR 2017-04-25 12:31:04 +02:00
David A. Velasco 9fe7c995dd Add write timeout if socket implementation supports it, so that chances of blocking and upload if network is removed are minimized 2017-04-21 16:10:16 +02:00
David A. Velasco 02e3a90df3 Release input stream on IO exceptions so that next download in the queue does not get stucked 2017-04-20 11:30:29 +02:00
David A. Velasco f42a9f8c61 Constants and comments after crossed review 2017-04-17 10:25:58 +02:00
David A. Velasco 825ef70cef Allow the usage of OwnCloudVersion instances for invalid server versions, and removed some really old or never used endpoint paths 2017-04-07 14:57:01 +02:00
davigonz d7f453f0e3 Deleted <p> 2017-03-07 09:22:08 +01:00
davigonz 29493f1983 Change MAINTENANCE_MODE ResultCode to SERVICE_UNAVAILABLE 2017-03-06 12:36:40 +01:00
David A. Velasco 1535be3876 Prevent access to accounts of other apps with the same name as an OC account 2017-02-20 11:08:44 +01:00
David González 9854ef6f60 Update RemoteOperationResult.java 2017-02-20 09:19:48 +01:00
davigonz 4dea8debb4 Merge branch 'master' into ext_storage 2017-02-14 14:15:53 +01:00
David A. Velasco d5e179d7a2 Use preemptive authentication except in server versions where it is not compatible with session tracking 2017-02-13 09:34:40 +01:00
davigonz 06f907294a Change HEAD method to PROPFIND method while checking path existence before starting an upload 2017-02-10 12:17:57 +01:00