Skip to content

Commit

Permalink
fix: adjust script to allow SG to be prompted as alternative method
Browse files Browse the repository at this point in the history
GluuFederation/casa#276

Signed-off-by: jgomer2001 <[email protected]>
  • Loading branch information
jgomer2001 committed May 17, 2024
1 parent 1f1cb2a commit 8f9eb14
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion static/casa/scripts/casa-external_super_gluu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8f9eb14

Please sign in to comment.