16 Commits

Author SHA1 Message Date
Miguel Jacq
5d9554438f ClientAuthV3 fixes
* Remove Client Auth as an explicit option (it's on by default).
 * Update wording about Public mode
 * Fix tuple error when raising TorTooOldStealth exception in CLI
 * Move Private Key button next to URL button in GUI
 * Replace visual references of ClientAuth to Private Key
 * Remove HTTPAuth Flask dependency and remove a lot of code to do with password generation,
   401 auth triggers/invalid password rate limit detection etc
 * Test updates
 * Remove obsolete locale keys
2021-08-27 15:52:29 +10:00
Micah Lee
961e920878 Remove endpoint altogether because it's not needed 2021-08-20 11:59:26 -07:00
Twann
d83a4e3ebc Fix issue #1365 2021-08-19 16:15:53 +02:00
Miguel Jacq
aa7a6e321b Move the 'supports_file_requests' attribute into the actual modes rather than the Web class 2021-05-11 09:25:22 +10:00
Miguel Jacq
52d625203c Adds attribute self.mode_supports_file_requests in Web class. Don't send REQUEST_INDIVIDUAL_FILE_STARTED to the frontend if the mode doesn't support this, so that we don't trigger a chain reaction of toggling history widgets and the like. Set this attribute to True by default since most modes use it, but turn it off for Chat mode. Prevents an exception when sending a bad HTTP method or a 404 to a chat room 2021-05-11 08:41:17 +10:00
Miguel Jacq
d1cbe2faf6 Fix HTTP return code for custom 500 internal server error handler 2021-05-10 15:57:23 +10:00
Miguel Jacq
92027345d0 Register the 405 error handler properly. Enforce the appropriate methods for each route (GET or POST only, with OPTIONS disabled). Add tests for invalid methods. Add a friendlier 500 internal server error handler 2021-05-10 11:23:44 +10:00
Miguel Jacq
ff5e73a2ae Move the cleanup() function from Onionshare class to Web class, so that the list of files to be cleaned up is always available (needed for website temp files) 2021-05-04 16:21:42 +10:00
Micah Lee
34b791abcf GUI displays "Read Message" button when a receive mode submission includes a message 2021-04-30 17:16:02 -07:00
Micah Lee
cfbf07b903 Fix flake8 issues found in cli 2021-04-29 17:13:05 -07:00
Miguel Jacq
a21498067c Update the Content-Security-Policy: remove style-src and script-src which are inherited by default-src. Add frame-ancestors, form-action and base-uri which do not inherit default-src 2021-04-29 10:09:44 +10:00
Saptak S
934136b345 Force shutdowns the socket server on closing chat server 2021-04-19 02:59:22 +05:30
Aksh Gupta
6805f6acae chore: refactor code quality issues 2021-03-10 22:59:47 +05:30
Micah Lee
4f5f75cc25 Update copyright year to 2021 2021-02-22 13:35:14 -08:00
Tim Gates
52f6ee7b47 docs: fix simple typo, progess -> progress
There is a small typo in cli/onionshare_cli/web/web.py.

Should read `progress` rather than `progess`.
2020-12-24 10:34:47 +11:00
Micah Lee
a54f99adf6 Add onionshare CLI to cli folder, move GUI to desktop folder, and start refactoring it to work with briefcase 2020-10-12 22:40:55 -07:00