Commit graph

4554 commits

Author SHA1 Message Date
Fabio Manganiello 90736f8ffb
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-26 23:58:32 +00:00
Fabio Manganiello 6cd342e1f4
[UI] Quickfix: Remove margin from default input style.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-27 01:55:46 +02:00
Fabio Manganiello e234210fb5
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-26 23:46:57 +00:00
Fabio Manganiello 179c8265cf
[#419] Added ability to view and remove API tokens.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-27 01:43:18 +02:00
Fabio Manganiello c13623c3f7
[#419] API tokens - frontend implementation.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-26 21:59:14 +02:00
Fabio Manganiello a8343cb45b
[UI] Persist current settings page on the URL. 2024-07-26 17:37:25 +02:00
Fabio Manganiello 91f6beb349
[#419] API tokens - backend implementation.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-26 02:29:40 +02:00
Fabio Manganiello 683ffa98c1
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-25 00:45:14 +00:00
Fabio Manganiello 6b5dbe7c1e
[#339] Frontend implementation of the new 2FA logic.
All checks were successful
continuous-integration/drone/push Build is passing
Closes: #339
2024-07-25 02:43:15 +02:00
Fabio Manganiello 7351a2685a
[Automatic] Updated components cache
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-25 00:24:25 +00:00
Fabio Manganiello 79dc5e238d
[core] Skip 2FA code verification for JWT tokens.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-25 02:23:07 +02:00
Fabio Manganiello a11f17aa8f
[core] Encrypt users 2FA backup codes with bcrypt.
Instead of RSA - decrypting is unnecessary.
2024-07-25 02:23:07 +02:00
Fabio Manganiello 67d8d0a515
[Automatic] Updated components cache
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-24 22:48:49 +00:00
Fabio Manganiello 8ec1ca8543
[#339] Backend preparation for 2FA support.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-25 00:47:04 +02:00
Fabio Manganiello 2cbb005c67
[core] The generation of RSA keys should be behind shared process locks.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-25 00:38:30 +02:00
Fabio Manganiello cf813e4197
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-24 19:36:47 +00:00
Fabio Manganiello b1b51b4b7e
[tests] Fixed tests after HTTP auth refactor.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-24 21:34:30 +02:00
Fabio Manganiello 70db33b4e2
[core] Better Redis connection fail handling logic.
If the connection to Redis goes down, it shouldn't take down the main
thread.

Instead, catch `RedisConnectionError`, and execute `poll` in a loop
until the connection is restored.
2024-07-24 21:33:04 +02:00
Fabio Manganiello 357d92b479
[core] Added current_user() HTTP utility. 2024-07-24 00:49:21 +02:00
Fabio Manganiello 2033f9760a
[core] Refactoring user/authentication layer.
- Separated the user model/db classes from the `UserManager`.
- More consistent naming for the flag on the `authenticate_*` functions
  that enables returning a tuple with the authentication status - all
  those flags are now named `with_status`.
2024-07-23 22:44:40 +02:00
Fabio Manganiello ee27b2c4c6
[core] Refactored Web login/registration layer.
Some checks reported errors
continuous-integration/drone/push Build was killed
Instead of having a single Flask-provided endpoint, the UI should
initialize its own Vue component and manage the authentication
asynchronously over API.

This is especially a requirement for the implementation of 2FA.

The following routes have also been merged/refactored:

- `POST /register` -> `POST /auth?type=register`
- `POST /login` -> `POST /auth?type=login`
- `POST /auth` -> `POST /auth?type=jwt`
2024-07-23 02:08:25 +02:00
Fabio Manganiello 8904e40f9f
[UI] Redirect URIs should always be relative to the current host. 2024-07-23 02:08:25 +02:00
Fabio Manganiello fe2497577d
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-21 19:34:57 +00:00
Fabio Manganiello 01aedb5568
[UI] DropdownItem should emit @input together with @click.
All checks were successful
continuous-integration/drone/push Build is passing
The propagation of the `click` event shouldn't be stopped, as it is
required for the upstream Dropdown event to understand if it needs to
close.

Components should instead listen to `@input` events, so disabled items
will not be triggered.
2024-07-21 21:32:54 +02:00
Fabio Manganiello 2ccf00508d
[qrcode] Allow binary content for qrcode.generate. 2024-07-21 21:32:54 +02:00
Fabio Manganiello 8329de15ba
[UI] Added extra showError condition on /execute. 2024-07-21 21:32:53 +02:00
Fabio Manganiello c1b1bd6c50
[UI] Added generic .text-danger class. 2024-07-21 21:32:49 +02:00
Fabio Manganiello fdd42b8a22
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 22:00:27 +00:00
Fabio Manganiello baa584c1ca
[Torrents UI] Fixed style for files list
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 23:58:25 +02:00
Fabio Manganiello 929271ee0e
[Automatic] Updated components cache
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 20:26:11 +00:00
Fabio Manganiello f608475380 Fix outdated method name in sound plugin docs. 2024-07-20 20:25:21 +00:00
snyk-bot 5a1c6b064a
fix: requirements.txt to reduce vulnerabilities
The following vulnerabilities are fixed by pinning transitive dependencies:
- https://snyk.io/vuln/SNYK-PYTHON-URLLIB3-7267250
2024-07-20 22:21:54 +02:00
Fabio Manganiello f2b2189282
Merge pull request #437 from blacklight/snyk-fix-be2eea233b2d14c94dc846778f7390d9
[Snyk] Security upgrade zipp from 3.15.0 to 3.19.1
2024-07-20 12:43:52 +02:00
Fabio Manganiello 3e8ab8d0db
Merge branch 'master' into snyk-fix-be2eea233b2d14c94dc846778f7390d9 2024-07-20 12:43:44 +02:00
Fabio Manganiello 3f195b4e9c
Merge pull request #436 from blacklight/snyk-upgrade-68f4dd59f0141e45f5a75099ee1e596c
[Snyk] Upgrade vue from 3.4.27 to 3.4.29
2024-07-20 12:42:58 +02:00
Fabio Manganiello e75a865c86
Merge branch 'master' into snyk-upgrade-68f4dd59f0141e45f5a75099ee1e596c 2024-07-20 12:42:51 +02:00
Fabio Manganiello af187e95e5
Merge pull request #435 from blacklight/snyk-upgrade-207399cb68f0b666cd5a74f601c97857
[Snyk] Upgrade vue-router from 4.3.2 to 4.3.3
2024-07-20 12:41:55 +02:00
Fabio Manganiello 255422d5b8
Merge pull request #434 from blacklight/snyk-upgrade-e9c8d4be8f1465ea41d140fa3ac746c3
[Snyk] Upgrade sass from 1.77.2 to 1.77.3
2024-07-20 12:41:42 +02:00
Fabio Manganiello 18a7b05a80
Merge pull request #432 from blacklight/dependabot/npm_and_yarn/platypush/backend/http/webapp/braces-3.0.3
Bump braces from 3.0.2 to 3.0.3 in /platypush/backend/http/webapp
2024-07-20 12:41:24 +02:00
Fabio Manganiello 0c8d86b8d4
Merge pull request #433 from blacklight/snyk-fix-08929d3c6ce8e8043728fa83145c4cd8
[Snyk] Security upgrade urllib3 from 2.0.7 to 2.2.2
2024-07-20 12:40:59 +02:00
Fabio Manganiello 6ab0c3d953
Merge pull request #431 from blacklight/snyk-upgrade-58571bd8b39cde152d941b6e296a9f10
[Snyk] Upgrade axios from 1.6.8 to 1.7.1
2024-07-20 12:40:41 +02:00
Fabio Manganiello 48996622d9
[README] Added Codefactor badge.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 12:13:10 +02:00
Fabio Manganiello 38edaaf311
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 10:09:48 +00:00
Fabio Manganiello 15b615efe8
[Camera UI] React on screen orientation changes to redraw the camera frame.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 12:07:51 +02:00
Fabio Manganiello 6e99e87aa6
[PWA] Allow any orientation. 2024-07-20 12:07:51 +02:00
Fabio Manganiello a5c69d2ded
[Automatic] Updated components cache
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 01:48:11 +00:00
Fabio Manganiello 7661d9c843
[#393] Added bind_socket parameter to backend.http.
All checks were successful
continuous-integration/drone/push Build is passing
The web server can now listen either on a TCP port, on a UNIX socket, or
both.

Closes: #393
2024-07-20 03:46:57 +02:00
Fabio Manganiello 9e36c5550f
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 00:59:17 +00:00
Fabio Manganiello 8291a97cd9
[Camera UI] Don't overflow the screen size.
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 02:57:21 +02:00
Fabio Manganiello 579f9816e2
[Automatic] Updated UI files
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-20 00:27:45 +00:00