X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fauth.py;h=b481bbd06bb6b47f17593208defc644842eb3e0c;hb=4c0a4987486224c214ee09289824d197f0af6c10;hp=f8ac90f3daf71756be37da952767b2d324d85074;hpb=f1c66ceaece2d285f9b1fbd9381117124f7c69f6;p=sfa.git diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index f8ac90f3..b481bbd0 100644 --- 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 {}"