From 83ae3b8b00099f0a016fa335e1482dfc9c7cdd37 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Nov 30 2017 15:57:16 +0000 Subject: Rename storeAssociation argument to match parent Signed-off-by: Patrick Uiterwijk Reviewed-by: Randy Barlow Reviewed-by: Howard Johnson --- diff --git a/ipsilon/providers/openid/store.py b/ipsilon/providers/openid/store.py index 5ae3ea5..bba6792 100644 --- a/ipsilon/providers/openid/store.py +++ b/ipsilon/providers/openid/store.py @@ -16,15 +16,15 @@ class OpenIDStore(Store, OpenIDStoreInterface): def __init__(self, database_url): Store.__init__(self, database_url=database_url) - def storeAssociation(self, server_url, assoc): - iden = '%s-%s' % (server_url, assoc.handle) - datum = {'secret': oidutil.toBase64(assoc.secret), - 'issued': str(assoc.issued), - 'lifetime': str(assoc.lifetime), - 'assoc_type': assoc.assoc_type} + def storeAssociation(self, server_url, association): + iden = '%s-%s' % (server_url, association.handle) + datum = {'secret': oidutil.toBase64(association.secret), + 'issued': str(association.issued), + 'lifetime': str(association.lifetime), + 'assoc_type': association.assoc_type} data = {iden: datum} - self.save_unique_data('association', data, ttl=assoc.lifetime) + self.save_unique_data('association', data, ttl=association.lifetime) def getAssociation(self, server_url, handle=None): iden = '%s-%s' % (server_url, handle)