git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
smoothen error handling
[sfa.git]
/
sfa
/
trust
/
auth.py
diff --git
a/sfa/trust/auth.py
b/sfa/trust/auth.py
index
f8ac90f
..
b481bbd
100644
(file)
--- a/
sfa/trust/auth.py
+++ b/
sfa/trust/auth.py
@@
-68,6
+68,8
@@
class Auth:
error = (None, None)
def log_invalid_cred(cred, exception):
+ if isinstance(cred, dict) and 'geni_value' in cred:
+ cred = cred['geni_value']
if not isinstance(cred, StringType):
logger.info(
"{}: cannot validate credential {}"