From aa56ae9d848a3d6e0dacb1e584c70381036abc53 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Fri, 10 Apr 2009 02:34:53 +0000 Subject: [PATCH 1/1] add config argument to Auth constructor --- geni/util/auth.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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): -- 2.43.0