Skip to content

Commit

Permalink
Fetching certificates if there is an eception during verification of the
Browse files Browse the repository at this point in the history
singned token.

Change-Id: Id9c4c66048a1878bc077bef25c0ac8636a7dc49c
Closes-Bug: 1413082
  • Loading branch information
cijohnson committed Mar 12, 2015
1 parent 178de4a commit 3d373c4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/config/api-server/vnc_auth_keystone.py
Expand Up @@ -235,8 +235,14 @@ def verify_signed_token(self, user_token):
try:
return self._auth_middleware.verify_signed_token(user_token)
except:
return None
# end
# Retry verify after fetching the certs.
try:
self._auth_middleware.fetch_signing_cert()
self._auth_middleware.fetch_ca_cert()
return self._auth_middleware.verify_signed_token(user_token)
except:
return None
# end verify_signed_token

# convert keystone user id to name
def user_id_to_name(self, id):
Expand Down

0 comments on commit 3d373c4

Please sign in to comment.