From 85185f1259092ba907d1b210096ca74ccbfad1cd Mon Sep 17 00:00:00 2001 From: Tasos Katsoulas Date: Tue, 26 Mar 2019 12:32:24 +0200 Subject: [PATCH] Replace list with string in AAL assertion. --- mozillians/common/authbackend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozillians/common/authbackend.py b/mozillians/common/authbackend.py index 671b7d0d..476e2d33 100644 --- a/mozillians/common/authbackend.py +++ b/mozillians/common/authbackend.py @@ -152,7 +152,7 @@ class MozilliansAuthBackend(OIDCAuthenticationBackend): email = self.claims.get('email') aal_scope = self.claims.get(SSO_AAL_SCOPE) is_mfa = True - if not aal_scope or aal_scope != ['MEDIUM']: + if not aal_scope or aal_scope != 'MEDIUM': is_mfa = False # Grant an employee vouch if the user has the 'hris_is_staff' group