Skip to content

Commit

Permalink
Merge pull request #749 from GluuFederation/maduvena-patch-2
Browse files Browse the repository at this point in the history
feat: Touch ID as a fido2 device in casa
  • Loading branch information
nynymike authored Aug 10, 2021
2 parents 487ace2 + 626188c commit 60c41f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/casa/scripts/casa-external_fido2.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,10 @@ def prepareForStep(self, configurationAttributes, requestParameters, step):
assertionService = Fido2ClientFactory.instance().createAssertionService(metaDataConfiguration)
assertionRequest = json.dumps({'username': userName}, separators=(',', ':'))
assertionResponse = assertionService.authenticate(assertionRequest).readEntity(java.lang.String)
if "internal" in assertionResponse:
identity.setWorkingParameter("platformAuthenticatorAvailable", "true")
else:
identity.setWorkingParameter("platformAuthenticatorAvailable", "false")
except ClientResponseFailure, ex:
print "Fido2. Prepare for step 2. Failed to start assertion flow. Exception:", sys.exc_info()[1]
return False
Expand Down

0 comments on commit 60c41f8

Please sign in to comment.