Add pyjwt to dependencies, remove unnecessary arg
diff --git a/pyoauth2/provider.py b/pyoauth2/provider.py
index 2c95374..f939887 100644
--- a/pyoauth2/provider.py
+++ b/pyoauth2/provider.py
@@ -127,8 +127,8 @@
"""
return "3600"
- def generate_id_token(self, client_id, client_secret):
- """Generate a random authorization code.
+ def generate_id_token(self, client_secret):
+ """Generate a jwt id token, containing email.
:rtype: str
"""
@@ -271,7 +271,7 @@
token_type = self.token_type
expires_in = self.token_expires_in
refresh_token = self.generate_refresh_token()
- id_token = self.generate_id_token(client_id, client_secret)
+ id_token = self.generate_id_token(client_secret)
# Save information to be used to validate later requests
self.persist_token_information(client_id=client_id,
@@ -348,7 +348,7 @@
token_type = self.token_type
expires_in = self.token_expires_in
refresh_token = self.generate_refresh_token()
- id_token = self.generate_id_token(client_id, client_secret)
+ id_token = self.generate_id_token(client_secret)
# Save information to be used to validate later requests
self.persist_token_information(client_id=client_id,
diff --git a/setup.py b/setup.py
index e577c23..415cff8 100755
--- a/setup.py
+++ b/setup.py
@@ -62,7 +62,8 @@
'pyopenssl',
'Flask-SQLAlchemy',
'flask',
- 'alembic'
+ 'alembic',
+ 'pyjwt'
],
classifiers=[
'Development Status :: 3 - Alpha',