Skip to content

Commit

Permalink
Simplifying logic.
Browse files Browse the repository at this point in the history
This except block would ALWAYS fail. uuid has the hex attribute in all python
versions.
  • Loading branch information
rdegges committed Apr 11, 2016
1 parent df9ad5e commit 334ad6e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions stormpath/resources/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,14 +218,9 @@ def build_id_site_redirect_url(self, callback_uri, path=None, state=None, logout

endpoint = self.SSO_LOGOUT_ENDPOINT if logout else self.SSO_ENDPOINT

try:
irt = uuid4().get_hex()
except AttributeError:
irt = uuid4().hex

body = {
'iat': datetime.utcnow(),
'jti': irt,
'jti': uuid4().hex,
'iss': api_key_id,
'sub': self.href,
'cb_uri': callback_uri,
Expand Down

0 comments on commit 334ad6e

Please sign in to comment.