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:
05c1da5
)
added verify_cred_is_me()
author
Tony Mack
<tmack@cs.princeton.edu>
Sat, 26 Sep 2009 01:55:48 +0000
(
01:55
+0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Sat, 26 Sep 2009 01:55:48 +0000
(
01:55
+0000)
sfa/trust/auth.py
patch
|
blob
|
history
diff --git
a/sfa/trust/auth.py
b/sfa/trust/auth.py
index
298d032
..
f0574d9
100644
(file)
--- a/
sfa/trust/auth.py
+++ b/
sfa/trust/auth.py
@@
-64,6
+64,16
@@
class Auth:
return True
+
+ def verify_cred_is_me(self, credential):
+ is_me = False
+ cred = Credential(string=credential)
+ caller_gid = cred.get_gid_caller()
+ caller_hrn = caller_gid.get_hrn()
+ if caller_hrn != self.config.SFA_INTERFACE_HRN:
+ raise GeniPermissionError(self.config.SFA_INTEFACE_HRN)
+
+ return
def get_auth_info(self, auth_hrn):
"""