X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fauth.py;h=8832639634c06346508adefc8685af0b52de7396;hb=c205adab13e918293f0a031d7dfa11e90b13bfad;hp=8570c786ed0b2b60176cec938d6447f4e6f4851a;hpb=73bb956984ac50cad8754dbc70dab2c4836b477d;p=sfa.git diff --git a/sfa/trust/auth.py b/sfa/trust/auth.py index 8570c786..88326396 100644 --- a/sfa/trust/auth.py +++ b/sfa/trust/auth.py @@ -17,22 +17,6 @@ from sfa.util.sfaticket import * from sfa.util.sfalogging import logger import sys -def filter_creds_by_caller(self, creds, caller_hrn): - """ - Returns a list of creds who's gid caller matches the - specified caller hrn - """ - if not isinstance(creds, list): creds = [creds] - caller_creds = [] - for cred in creds: - try: - tmp_cred = Credential(string=cred) - if tmp_cred.get_gid_caller().get_hrn() == caller_hrn: - caller_creds.append(cred) - except: pass - return caller_creds - - class Auth: """ Credential based authentication