Skip to content
Permalink
Browse files
Add pyjwt to dependencies, remove unnecessary arg
  • Loading branch information
brogand93 committed Jul 28, 2014
1 parent dcf0afc commit 9e09bd5b950c0786238302cb9e57564d9407b058
Showing 2 changed files with 6 additions and 5 deletions.
@@ -127,8 +127,8 @@ def token_expires_in(self):
"""
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 @@ def refresh_token(self,
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 @@ def get_token(self,
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,
@@ -62,7 +62,8 @@ def read(fname):
'pyopenssl',
'Flask-SQLAlchemy',
'flask',
'alembic'
'alembic',
'pyjwt'
],
classifiers=[
'Development Status :: 3 - Alpha',

0 comments on commit 9e09bd5

Please sign in to comment.