Fixed bug in claims_match method

This commit is contained in:
Roland Hedberg 2014-12-12 09:39:10 +01:00
parent a0a1d5a756
commit 263d5f9302
1 changed files with 7 additions and 2 deletions

View File

@ -904,7 +904,7 @@ class Provider(AProvider):
if claimspec is None:
return True
for key, val in claimspec:
for key, val in claimspec.items():
if key == "value":
if value != val:
return False
@ -1373,7 +1373,12 @@ class Provider(AProvider):
_keyjar[client_id] = [_kc]
self.cdb[client_id] = _cinfo
self.cdb.sync()
try:
self.cdb.sync()
except AttributeError: # Not all databases can be sync'ed
pass
_log_info("Client info: %s" % _cinfo)
logger.debug("registration_response: %s" % response.to_dict())