Skip to content

Commit c4ea6e7

Browse files
authored
Add support for Plex JWT Authentication (#1554)
* Add private.key and public.key to .gitignore * Add `MyPlexJWTAuth` class * Add `utils.plexJWTAuth` helper function * Update optional dependencies for Plex JWT authentication * Add method to retrieve Plex JWT without initial Plex token * Update doc strings * Switch MyPlexJWTLogin to JSON response * Remove cached data properties * Guard against None keypair * Use UTC timezone for jwt
1 parent 659b549 commit c4ea6e7

File tree

6 files changed

+634
-39
lines changed

6 files changed

+634
-39
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ pyvenv.cfg
2727
MANIFEST
2828
venv/
2929
.venv/
30+
private.key
31+
public.key
3032

3133
# path for the test lib.
3234
plex/

README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ Installation & Documentation
3737
.. code-block:: python
3838
3939
pip install plexapi[alert] # Install with dependencies required for plexapi.alert
40+
pip install plexapi[jwt] # Install with dependencies required for Plex JWT authentication
4041
4142
Documentation_ can be found at Read the Docs.
4243

0 commit comments

Comments
 (0)