You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: synthetics/test-config/auth.rst
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -418,7 +418,7 @@ The secret key is a shared value which both your test target and your test's aut
418
418
* 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>``.
419
419
420
420
421
-
Save the secret key in a global variable
421
+
Save the secret key in a global variable of type TOTP
@@ -440,7 +440,7 @@ There are two ways to create a global variable:
440
440
441
441
In the :guilabel:`Add global variable` dialog box, enter the following:
442
442
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`.
444
444
#. In the :guilabel:`Variable name` field, enter the name of the variable. You will use this name to access your variable within a test.
445
445
#. Save the secret key either by:
446
446
@@ -466,15 +466,11 @@ Set up a browser test that uses a TOTP
466
466
467
467
#. On the browser test's configuration page, select the :guilabel:`Simple` toggle.
468
468
#. 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>}}``.
470
470
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.
0 commit comments