Skip to content

Commit

Permalink
Make client_identifier public
Browse files Browse the repository at this point in the history
  • Loading branch information
jjlawren committed Oct 17, 2019
1 parent 98f7f8f commit 12fd4a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions plexauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import urllib.parse
import uuid

__version__ = '0.0.3'
__version__ = '0.0.5'

CODES_URL = 'https://plex.tv/api/v2/pins.json?strong=true'
AUTH_URL = 'https://app.plex.tv/auth#!?{}'
Expand All @@ -15,11 +15,11 @@ class PlexAuth():

def __init__(self, payload, session=None):
'''Create PlexAuth instance.'''
self._client_identifier = str(uuid.uuid4())
self.client_identifier = str(uuid.uuid4())
self._code = None
self._identifier = None
self._payload = payload
self._payload['X-Plex-Client-Identifier'] = self._client_identifier
self._payload['X-Plex-Client-Identifier'] = self.client_identifier

self._local_session = False
self._session = session
Expand All @@ -37,7 +37,7 @@ async def initiate_auth(self):
def auth_url(self, forward_url=None):
'''Return an auth URL for the user to follow.'''
parameters = {
'clientID': self._client_identifier,
'clientID': self.client_identifier,
'code': self._code,
}
if forward_url:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
with open('README.md') as f:
long_description = f.read()

VERSION="0.0.3"
VERSION="0.0.5"

setup(
name='plexauth',
Expand Down

0 comments on commit 12fd4a5

Please sign in to comment.