From: Tony Mack Date: Fri, 10 Apr 2009 02:34:53 +0000 (+0000) Subject: add config argument to Auth constructor X-Git-Tag: sfa-0.9-0@14641~498 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=aa56ae9d848a3d6e0dacb1e584c70381036abc53;p=sfa.git add config argument to Auth constructor --- diff --git a/geni/util/auth.py b/geni/util/auth.py index 746f0c0b..48c39221 100644 --- a/geni/util/auth.py +++ b/geni/util/auth.py @@ -11,18 +11,19 @@ from geni.util.trustedroot import TrustedRootList from geni.util.hierarchy import Hierarchy from geni.util.rights import RightList from geni.util.genitable import * - +from geni.util.config import * class Auth: """ Credential based authentication """ - def __init__(self, peer_cert): + def __init__(self, peer_cert = None, config = None ): self.peer_cert = peer_cert self.hierarchy = Hierarchy() self.trusted_cert_list = TrustedRootList().get_list() - + if not config: + self.config = Config() def check(self, cred, operation):