From 8f9eb14236ccef0fb5c54fa83330f971a8611926 Mon Sep 17 00:00:00 2001 From: jgomer2001 Date: Fri, 17 May 2024 07:42:18 -0500 Subject: [PATCH] fix: adjust script to allow SG to be prompted as alternative method https://github.com/GluuFederation/casa/issues/276 Signed-off-by: jgomer2001 --- static/casa/scripts/casa-external_super_gluu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/casa/scripts/casa-external_super_gluu.py b/static/casa/scripts/casa-external_super_gluu.py index ee8f72e3..e4008a24 100644 --- a/static/casa/scripts/casa-external_super_gluu.py +++ b/static/casa/scripts/casa-external_super_gluu.py @@ -243,7 +243,11 @@ def authenticate(self, configurationAttributes, requestParameters, step): return True elif self.twoStep: - authenticated_user = self.processBasicAuthentication(credentials) + # Modified for Casa compliance + authenticated_user = authenticationService.getAuthenticatedUser() + if authenticated_user == None: + authenticated_user = self.processBasicAuthentication(credentials) + if authenticated_user == None: return False