Skip to content

Commit

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

Change-Id: I0f0cc0f5f7fab7a46c67111d9a1cce3f94c6cb18
Closes-Bug: 1413082
  • Loading branch information
cijohnson committed Mar 12, 2015
1 parent e16b4f4 commit c280e6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/config/api-server/vnc_auth_keystone.py
Expand Up @@ -235,7 +235,13 @@ def verify_signed_token(self, user_token):
try:
return self._auth_middleware.verify_signed_token(user_token)
except:
return None
# 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

# convert keystone user id to name
Expand Down

0 comments on commit c280e6e

Please sign in to comment.