X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=geni%2Futil%2Fauth.py;h=48c39221e5be8e49723311f8407ac18d7a9fe7a0;hb=aa56ae9d848a3d6e0dacb1e584c70381036abc53;hp=746f0c0ba6b6de89ab3a13d169869d0c8f6db4b4;hpb=e77e7d672bbbb2ba5ebb5ca854c36661715be55e;p=sfa.git 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):