diff options
author | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2021-07-13 13:11:38 +0300 |
---|---|---|
committer | Ivan Kanakarakis <ivan.kanak@gmail.com> | 2021-07-13 13:11:38 +0300 |
commit | 530e49982c151616d7a96a37c220339a7e1dcccd (patch) | |
tree | e0bb44ef4a50312ff0949f5f551d08ca7ac2d994 | |
parent | b4fd7262410ac31a71b56c7a703dc4a961a2372e (diff) | |
download | pysaml2-530e49982c151616d7a96a37c220339a7e1dcccd.tar.gz |
Consider DeclRef equivalent to ClassRef
Signed-off-by: Ivan Kanakarakis <ivan.kanak@gmail.com>
-rw-r--r-- | src/saml2/response.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/saml2/response.py b/src/saml2/response.py index 5935bee8..72d0ef75 100644 --- a/src/saml2/response.py +++ b/src/saml2/response.py @@ -1082,7 +1082,10 @@ class AuthnResponse(StatusResponse): continue try: - authn_class = context.authn_context_class_ref.text + authn_class = ( + context.authn_context_class_ref.text + or context.authn_context_decl_ref.text + ) except AttributeError: authn_class = "" |