From 860260fc8889caf0fa42c1e5dcb8a9f5f50be684 Mon Sep 17 00:00:00 2001 From: imran-ishaq Date: Tue, 29 Oct 2024 15:35:40 +0500 Subject: [PATCH] refactor(docs): add origin parameter in Fido2ExternalAuthenticator script for attestation and assertion API calls #9248 Signed-off-by: imran-ishaq --- .../Fido2ExternalAuthenticator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/script-catalog/person_authentication/fido2-external-authenticator/Fido2ExternalAuthenticator.py b/docs/script-catalog/person_authentication/fido2-external-authenticator/Fido2ExternalAuthenticator.py index 94165117d1e..60f32abee82 100644 --- a/docs/script-catalog/person_authentication/fido2-external-authenticator/Fido2ExternalAuthenticator.py +++ b/docs/script-catalog/person_authentication/fido2-external-authenticator/Fido2ExternalAuthenticator.py @@ -177,7 +177,7 @@ def prepareForStep(self, configurationAttributes, requestParameters, step): try: assertionService = Fido2ClientFactory.instance().createAssertionService(metaDataConfiguration) - assertionRequest = json.dumps({'username': userName}, separators=(',', ':')) + assertionRequest = json.dumps({'username': userName, 'origin', domain}, separators=(',', ':')) assertionResponse = assertionService.authenticate(assertionRequest).readEntity(java.lang.String) print "assertionResponse %s " % assertionResponse @@ -190,7 +190,7 @@ def prepareForStep(self, configurationAttributes, requestParameters, step): try: attestationService = Fido2ClientFactory.instance().createAttestationService(metaDataConfiguration) - basic_json = {'username': userName, 'displayName': userName} + basic_json = {'username': userName, 'displayName': userName, 'origin', domain} print " basic_json %s" % basic_json