From 042db6a88c8b4ad8e3e41398cb82ad4618e6b0ec Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:15:51 -0800 Subject: [PATCH] [8.16](backport #4581) [Synthetics]: fix MFA totp method for browser monitors (#4597) * [Synthetics]: fix MFA totp method for browser monitors (#4581) (cherry picked from commit 083cf27f8f7042cee5b6377c9990151e1cc8c649) # Conflicts: # docs/en/serverless/synthetics/synthetics-mfa.asciidoc * Delete docs/en/serverless directory --------- Co-authored-by: Vignesh Shanmugam Co-authored-by: github-actions[bot] --- docs/en/observability/synthetics-mfa.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/en/observability/synthetics-mfa.asciidoc b/docs/en/observability/synthetics-mfa.asciidoc index 476c3ce04a..d49fe6fb63 100644 --- a/docs/en/observability/synthetics-mfa.asciidoc +++ b/docs/en/observability/synthetics-mfa.asciidoc @@ -41,7 +41,7 @@ import { journey, step, mfa} from '@elastic/synthetics'; journey('MFA Test', ({ page, params }) => { step('Login using TOTP token', async () => { // login using username and pass and go to 2FA in next page - const token = mfa.token(params.MFA_GH_SECRET); + const token = mfa.totp(params.MFA_SECRET); await page.getByPlaceholder("token-input").fill(token) }); }); @@ -51,12 +51,12 @@ For monitors created in the Synthetics UI using the Script editor, the `mfa` obj ```ts step('Login using 2FA', async () => { - const token = mfa.token(params.MFA_GH_SECRET); + const token = mfa.totp(params.MFA_SECRET); await page.getByPlaceholder("token-input").fill(token) }); ``` [NOTE] ==== -`params.MFA_GH_SECRET` would be the encoded secret that was used for registering the Synthetics Authentication in your web application. +`params.MFA_SECRET` would be the encoded secret that was used for registering the Synthetics Authentication in your web application. ==== \ No newline at end of file