Skip to content

Commit 0ca761b

Browse files
author
ada
committed
Incorporated reviewer feedback
1 parent 36cb307 commit 0ca761b

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

synthetics/test-config/auth.rst

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ The secret key is a shared value which both your test target and your test's aut
418418
* The plain-text secret key, which is visible as an embedded string in the test target's QR code when you view the QR code as a URL string. For example, if the QR code is ``otpauth://totp/Slack:<username>@<somedomain>?secret=<long-string>&issuer=<app-name>&algorithm=SHA1&digits=6&period=30``, the secret key is ``<long-string>``.
419419

420420

421-
Save the secret key in a global variable
421+
Save the secret key in a global variable of type TOTP
422422
------------------------------------------------------------------
423423

424424
There are two ways to create a global variable:
@@ -440,7 +440,7 @@ There are two ways to create a global variable:
440440

441441
In the :guilabel:`Add global variable` dialog box, enter the following:
442442

443-
#. In the :guilabel:`Variable` type pull-down menu, select either :guilabel:`TOTP` or :guilabel:`TOTP`.
443+
#. In the :guilabel:`Variable` type pull-down menu, select :guilabel:`TOTP`.
444444
#. In the :guilabel:`Variable name` field, enter the name of the variable. You will use this name to access your variable within a test.
445445
#. Save the secret key either by:
446446

@@ -466,15 +466,11 @@ Set up a browser test that uses a TOTP
466466

467467
#. On the browser test's configuration page, select the :guilabel:`Simple` toggle.
468468
#. Select :guilabel:`Edit steps or synthetic transactions`.
469-
#. Add a step of type :guilabel:`Fill in field`, and in :guilabel:`Value`, do one of the following:
469+
#. Add a step of type :guilabel:`Fill in field`, and in :guilabel:`Value`, scroll down to the :guilabel:`TOTP` section (or type ``totp`` into the search field) and select the name of the TOTP variable you created. You can also enter this variable name directly as ``{{totp.<variable-name>}}``.
470470

471-
* If you saved the secret key as a variable of type TOTP, set :guilabel:`Type` to :guilabel:`TOTP` and enter the name of the TOTP variable you created as ``{{totp.<variable-name>}}``.
472-
* If you saved the secret key as a global variable, set :guilabel:`Type` to :guilabel:`ENV` and enter the name of the global variable as as ``{{env.<variable-name>}}``.
473-
* If you didn't save the secret key as a variable, set :guilabel:`Type` to :guilabel:`TEXT` and paste the secret key.
474-
475-
.. image:: /_images/synthetics/auth-multifactor-totp-fillinfield.png
476-
:width: 70%
477-
:alt: Screenshot showing the "Fill in field" step.
471+
.. image:: /_images/synthetics/auth-multifactor-totp-fillinfield.png
472+
:width: 70%
473+
:alt: Screenshot showing the "Fill in field" step.
478474

479475

480476
#. To verify that the login succeeded, add a step of type :guilabel:`Assert text present`, and set it up as follows:

0 commit comments

Comments
 (0)