Skip to content

Commit 73e6d05

Browse files
committed
Remove authToken attribute from local server account
Authentication token removed from `/myplex/account` endpoint. Ref.: https://forums.plex.tv/t/information-related-to-security-vulnerabilities/935164/17
1 parent a20a7ac commit 73e6d05

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

plexapi/server.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,6 @@ class Account(PlexObject):
10741074
data (ElementTree): Response from PlexServer used to build this object (optional).
10751075
10761076
Attributes:
1077-
authToken (str): Plex authentication token to access the server.
10781077
mappingError (str): Unknown
10791078
mappingErrorMessage (str): Unknown
10801079
mappingState (str): Unknown
@@ -1096,7 +1095,6 @@ class Account(PlexObject):
10961095

10971096
def _loadData(self, data):
10981097
""" Load attribute values from Plex XML response. """
1099-
self.authToken = data.attrib.get('authToken')
11001098
self.username = data.attrib.get('username')
11011099
self.mappingState = data.attrib.get('mappingState')
11021100
self.mappingError = data.attrib.get('mappingError')

tests/test_myplex.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ def test_myplex_accounts(account, plex):
2323
# print('authToken: %s' % account.authToken)
2424
print(f"signInState: {account.signInState}")
2525
assert account.username, "Account has no username"
26-
assert account.authToken, "Account has no authToken"
2726
assert account.signInState, "Account has no signInState"
2827

2928

0 commit comments

Comments
 (0)