File tree Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Expand file tree Collapse file tree 1 file changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -1071,23 +1071,27 @@ def id(self):
1071
1071
1072
1072
def authn_info (self ):
1073
1073
res = []
1074
- for astat in self .assertion .authn_statement :
1075
- context = astat .authn_context
1074
+ for statement in self .assertion .authn_statement :
1076
1075
try :
1077
- authn_instant = astat .authn_instant
1076
+ authn_instant = statement .authn_instant
1078
1077
except AttributeError :
1079
1078
authn_instant = ""
1080
- if context :
1081
- try :
1082
- aclass = context .authn_context_class_ref .text
1083
- except AttributeError :
1084
- aclass = ""
1085
- try :
1086
- authn_auth = [a .text for a in
1087
- context .authenticating_authority ]
1088
- except AttributeError :
1089
- authn_auth = []
1090
- res .append ((aclass , authn_auth , authn_instant ))
1079
+
1080
+ context = statement .authn_context
1081
+ if not context :
1082
+ continue
1083
+
1084
+ try :
1085
+ authn_class = context .authn_context_class_ref .text
1086
+ except AttributeError :
1087
+ authn_class = ""
1088
+
1089
+ try :
1090
+ authn_auth = [a .text for a in context .authenticating_authority ]
1091
+ except AttributeError :
1092
+ authn_auth = []
1093
+
1094
+ res .append ((authn_class , authn_auth , authn_instant ))
1091
1095
return res
1092
1096
1093
1097
def authz_decision_info (self ):
You can’t perform that action at this time.
0 commit comments