git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e77e7d6
)
add config argument to Auth constructor
author
Tony Mack
<tmack@cs.princeton.edu>
Fri, 10 Apr 2009 02:34:53 +0000
(
02:34
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Fri, 10 Apr 2009 02:34:53 +0000
(
02:34
+0000)
geni/util/auth.py
patch
|
blob
|
history
diff --git
a/geni/util/auth.py
b/geni/util/auth.py
index
746f0c0
..
48c3922
100644
(file)
--- 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.hierarchy import Hierarchy
from geni.util.rights import RightList
from geni.util.genitable import *
-
+from geni.util.config import *
class Auth:
"""
Credential based authentication
"""
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()
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):
def check(self, cred, operation):