Add an authenticator code to a QA test login

When a test account asks for a code from an authenticator app after its password, save the account’s authenticator with its test login. A run then types a fresh code at the code prompt and asks no one to take over. Authenticator codes are the only second factor a run answers: a code sent by SMS or e-mail, an approval on a phone, a security key and a passkey still need a person (Complete a QA sign-in that needs a person).

Decide whether the account should have one#

The setup key behind an authenticator produces every future code. Once Proofline holds it beside the password, it holds both of the account’s factors, and a code no longer shows that the account’s owner approved the sign-in. Save one only for a dedicated test account whose owner permits unattended sign-in, never for a person’s own account.

Get the enrollment QR image or setup key#

Start adding an authenticator to the test account in its identity provider. Save the QR code the provider shows as a PNG or JPEG image, or copy the setup key it shows beside the QR code. Proofline needs time-based codes; a key for counter-based codes cannot be saved.

An account that already has an authenticator needs its enrollment key, which most providers show only while the authenticator is being set up. Where the provider allows more than one authenticator, add another and use its QR code. A screenshot of a code in an authenticator app cannot be used, because the code changes and does not contain the key, and neither can an authenticator app’s export QR code.

Finish the enrollment at the provider#

Many providers finish setting up an authenticator only after you type a first code from it. Proofline does not type that code. Where the provider’s policy permits it, scan the same QR code, or enter the same setup key, into an authenticator app you control, and type its code at the provider. That app keeps producing codes the account accepts until the authenticator is removed at the provider.

Saving the key in Proofline does not finish the enrollment at the provider. Only a verified sign-in shows that the two agree.

Save the authenticator with the login#

In the setup’s Configuration tab, open Test logins and select Add test login, or Replace on the persona’s login. Enter the Persona, Username and Password.

Under Second factor, choose Authenticator code. Drop the QR image onto Enrollment QR image or choose the file. The image is read in your browser and is not uploaded. Alternatively, enter the key in Setup key; spaces and hyphens are ignored. A typed key is saved for 6-digit codes that change every 30 seconds, so use the QR image when the provider’s codes have 8 digits or change every 60 seconds.

After the image is read, the form shows the Account and Issuer named in its QR code. Check that they name the test account and its provider, and choose Use another key if they do not. The issuer is a label only: the login’s sign-in origins decide where a run signs in.

Select the sign-in origins and set a signed-in check, which verification needs. Select Add login, or Save login for a replacement. A replacement asks for the QR image or setup key again, as it asks for the password.

Fix a refused image or key#

The form says why it cannot use an image or key:

  • Choose one PNG or JPEG image. Choose a single image file in one of those formats.
  • This image is larger than 5 MB. or This image is wider or taller than 4,096 pixels. Crop the image to the QR code.
  • This image could not be read. or This image has no QR code that can be read. Save the whole QR code again at a readable size, or enter the setup key.
  • This QR code is not an authenticator enrollment for one account. The QR code holds something else, such as a link. Use the QR code from the provider’s authenticator setup.
  • This QR code is for counter-based codes. Choose time-based codes at the provider, if it offers them.
  • This QR code is an authenticator app’s export. Use the enrollment QR code the provider shows.
  • A message about the algorithm, the number of digits or how often codes change. The provider’s authenticator uses settings a run cannot answer.
  • Enter the setup key as the provider shows it. The key contains only letters and the digits 2 to 7, so check for a mistyped 0, 1, 8 or 9.
  • Add the enrollment QR image or enter the setup key. Add one of them, or choose None to save the password alone.
  • The QR code reader could not be loaded. Try again, or enter the setup key.

Check that the authenticator is verified#

In Test logins, Second factor reads Authenticator code (verified) once a fresh sign-in after the login’s latest change typed a code and passed the signed-in check. Until then it reads (unverified), and a login without a signed-in check cannot be verified. A sign-in in which the run typed no code, such as one where a person typed it during a takeover, verifies nothing.

When the application refuses a code, Last sign-in shows Code refused. Check that the setup key belongs to this account and that the authenticator is still enrolled at the provider. After the application has refused two of the login’s codes, in any run, runs type no more of its codes until the login is replaced, and Second factor says so. A run that reaches the code prompt then asks a person to take over, and a confirmer ends. A sign-in that sent a code and then met a CAPTCHA counts as a refusal. To try again, select Replace and enter the correct QR image or setup key.

A field for an SMS or e-mail code looks like an authenticator’s, so a run types a code there too, and the application refuses it. If the account offers several factors, set it up so that the provider asks for the authenticator.

Remove the authenticator#

Removing an authenticator has two ends. In Proofline, select Replace on the login and choose None under Second factor, or remove the login (Remove a saved QA test login). Runs then stop using the key.

At the identity provider, remove the authenticator from the test account. Only that stops the key producing codes the account accepts, including in any authenticator app you set up with it. If the key may have been exposed, remove the authenticator at the provider, add a new one and replace the login here with its QR image or setup key.

Search help

Tab to a result. Enter to open. Escape to close.