We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92445ac commit ccef0aaCopy full SHA for ccef0aa
src/saml2/response.py
@@ -1083,13 +1083,11 @@ def authn_info(self):
1083
if not context:
1084
continue
1085
1086
- try:
1087
- authn_class = (
1088
- context.authn_context_class_ref.text
1089
- or context.authn_context_decl_ref.text
1090
- )
1091
- except AttributeError:
1092
- authn_class = ""
+ authn_class = (
+ getattr(context.authn_context_class_ref, "text", None)
+ or getattr(context.authn_context_decl_ref, "text", None)
+ or ""
+ )
1093
1094
authenticating_authorities = getattr(
1095
context, "authenticating_authority", []
0 commit comments