Commit graph

79 commits

Author SHA1 Message Date
JonnyWong16
68dc095c83
Do not redirect API requests to login page
Fixes #2490
2025-03-23 20:10:43 -07:00
luzpaz
2ed603f288
Fix typos (#2520)
Found via codespell
2025-03-16 12:25:29 -07:00
Tom Niget
de3393d62b
Remove Python 2 handling code (#2098)
* Remove Python 2 update modal

* Remove Python 2 handling code

* Remove backports dependencies

* Remove uses of future and __future__

* Fix import

* Remove requirements

* Update lib folder

* Clean up imports and blank lines

---------

Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com>
2024-05-09 22:18:08 -07:00
JonnyWong16
d0c07326ab
Change cookie expires to max-age 2023-12-07 23:05:34 -08:00
JonnyWong16
fe7a59c7f9
Fix use UTC for JWT expiry and max-age for cookie 2023-12-06 23:09:32 -08:00
JonnyWong16
ddc8a08fc7
Replace usage of utcnow()
`datetime.utcnow()` deprecated in Python 3.12
2023-11-21 11:36:08 -08:00
JonnyWong16
c761e6e8d0
Fix template_name argument for login page 2023-06-29 00:07:43 -07:00
JonnyWong16
f39b9f9087
Fix SQLite Double-Quoted Strings (#2057)
* Fix __init__.py

* Fix activity_pinger.py

* Fix activity_processor.py

* Fix database.py

* Fix datafactory.py

* Fix exporter.py

* Fix graphs.py

* Fix libraries.py

* Fix mobile_app.py

* Fix newsletter_handler.py

* Fix newsletters.py

* Fix notification_handler.py

* Fix notifiers.py

* Fix plexivity_import.py

* Fix plexwatch_import.py

* Fix users.py

* Fix webauth.py
2023-05-15 11:03:26 -07:00
JonnyWong16
d2e84886f6
Fix jwt encoding 2021-10-15 02:00:35 -07:00
JonnyWong16
73001a4427
Check for HTTP Basic Auth in AuthController 2021-07-15 13:21:09 -07:00
JonnyWong16
2ea4b6b63d
Remove basic auth setting 2021-07-08 20:22:02 -07:00
JonnyWong16
b0a395ad0b
Always hash http password 2021-06-15 21:09:37 -07:00
JonnyWong16
da1c342971 Store JWT token in database 2021-05-14 14:03:05 -07:00
JonnyWong16
dae6c075d1
Remove all unused Plex token functions 2021-04-10 18:50:27 -07:00
JonnyWong16
5b5ccee23b
Strip HTTP root on login redirect 2021-01-29 10:32:44 -08:00
JonnyWong16
6a534ade9f
Redirect internally after login instead of client side
* Fixes Tautulli/Tautulli-Issues#300
2021-01-29 10:04:34 -08:00
JonnyWong16
9598247a0d
Merge pull request #1384 from krowvin/patch-1
Update reference link to CherryPy auth tool
2020-12-15 22:48:46 -08:00
JonnyWong16
230ee90b1c
Remove link to web.archive.org for CherryPy auth tool 2020-12-15 22:47:11 -08:00
krowvin
ff1bd0a4b8
Update webauth.py
Link is broken. Added two alternate links to the same information.
2020-11-12 17:03:04 -06:00
JonnyWong16
e544d0dd07
Improve login rate limit 2020-11-09 09:43:09 -08:00
JonnyWong16
3e0b240154
Add rate limiting to login page 2020-11-08 15:36:40 -08:00
JonnyWong16
1c395ab10c
Patch SameSite support into cookies
* Python 2.7 is missing SameSite cookie attribute
2020-06-27 15:01:16 -07:00
JonnyWong16
88e23627fd
Fix typo 2020-06-25 19:12:10 -07:00
JonnyWong16
48f846da40
Expire the previous JWT on update if HTTP root is set
* Required for Tautulli/Tautulli-Issues#255
2020-06-24 14:04:07 -07:00
JonnyWong16
617b0d6fd9
Set JWT cookie path to HTTP root
* Fixes Tautulli/Tautulli-Issues#255
2020-06-23 20:00:50 -07:00
JonnyWong16
d0f28883aa
Remove ability to login using Plex username / password.
* Only login using Plex OAuth
2020-06-02 17:28:24 -07:00
JonnyWong16
9e0153e962
Set PYTHON2 global variable 2020-04-04 07:57:51 -07:00
JonnyWong16
faf5cb0f8d Change jwt_cookie to str 2020-03-24 21:16:14 -07:00
JonnyWong16
cc05552685 Remove from __future__ import absolute_import 2020-03-24 20:17:44 -07:00
JonnyWong16
82c09570c4 Update all future imports for Python 2 2020-03-23 22:11:42 -07:00
JonnyWong16
078685a2a3 Fix imports for Python 2 2020-03-23 22:11:41 -07:00
JonnyWong16
077dfe7164 Decode jwt_token for login cookie 2019-11-24 15:50:27 -08:00
JonnyWong16
05afa0859c Run futurize --unicode-literals 2019-11-23 19:21:10 -08:00
JonnyWong16
ab6196589b Run futurize --stage1 2019-11-23 19:11:42 -08:00
JonnyWong16
c279057f91 Remove unicode strings 2019-11-23 14:37:26 -08:00
JonnyWong16
0ffc8c5d19 Update JWT secret instead of UUID 2019-08-24 22:00:31 -07:00
JonnyWong16
7498617b74 Flag update JWT UUID after restarting 2019-08-24 21:13:39 -07:00
JonnyWong16
f21d505ab8 Force logout all clients when changing the admin password 2019-08-24 20:49:56 -07:00
JonnyWong16
2711597ffb Pass OAuth client headers to server 2018-07-02 11:20:25 -07:00
JonnyWong16
24458bd23c Log login method 2018-07-02 09:55:41 -07:00
JonnyWong16
745d398527 Improve Plex OAuth 2018-07-02 08:51:51 -07:00
JonnyWong16
16bfcade8c Log failed OAuth attempts 2018-07-02 00:45:47 -07:00
JonnyWong16
3bd1b03faf Add Plex OAuth to login page 2018-07-01 22:55:13 -07:00
JonnyWong16
80506b8541 Add login redirect uri 2018-03-25 14:26:47 -07:00
JonnyWong16
525f1e4b0b Use cherrypy remote for login IP info 2018-03-13 10:00:08 -07:00
JonnyWong16
d18820b832 Use cherrypy base for login host info 2018-03-13 09:42:01 -07:00
JonnyWong16
7e024fd736 Remove test comment in c9c5989 2018-03-13 09:09:27 -07:00
JonnyWong16
c9c5989474 Fix login logs for Plex admin user 2018-03-13 09:08:09 -07:00
JonnyWong16
a15d225a5f Fix missing Host in login logs for Firefox 2018-02-10 12:23:05 -08:00
JonnyWong16
547dc9ed33 Fix checking login permissions 2018-01-11 23:28:10 -08:00