@@ -10,17 +10,18 @@ is to know your username and password *and* have access to your one time passwor
...
@@ -10,17 +10,18 @@ is to know your username and password *and* have access to your one time passwor
## Overview
## Overview
> **Note:**
TIP: **Tip:**
When you enable 2FA, don't forget to back up your recovery codes.
When you enable 2FA, don't forget to back up your [recovery codes](#recovery-codes)!
In addition to one time authenticators (TOTP), GitLab supports U2F (universal 2nd factor) devices as
In addition to time-based one time passwords (TOTP), GitLab supports U2F
the second factor of authentication. Once enabled, in addition to supplying your username and
(universal 2nd factor) devices as the second factor of authentication. Once
password to login, you'll be prompted to activate your U2F device (usually by pressing
enabled, in addition to supplying your username and password to login, you'll
a button on it), and it will perform secure authentication on your behalf.
be prompted to activate your U2F device (usually by pressing a button on it),
and it will perform secure authentication on your behalf.
The U2F workflow is [supported by](https://caniuse.com/#search=U2F) Google Chrome, Opera, and Firefox.
It is highly recommended that you set up 2FA with both a
We recommend that you set up 2FA with both a [one-time password authenticator](#enable-2fa-via-one-time-password-authenticator) and a [U2F device](#enable-2fa-via-u2f-device), so you can still access your account
Search for `security.webauth.u2f` and double click on it to toggle to `true`.
To set up 2FA with a U2F device:
1. Log in to your GitLab account.
1. Log in to your GitLab account.
1. Go to your **Profile Settings**.
1. Go to your **Profile Settings**.
...
@@ -77,19 +89,21 @@ of recovery codes.
...
@@ -77,19 +89,21 @@ of recovery codes.
You will see a message indicating that your device was successfully set up.
You will see a message indicating that your device was successfully set up.
Click on **Register U2F Device** to complete the process.
Click on **Register U2F Device** to complete the process.

## Recovery codes
## Recovery Codes
> **Note:**
NOTE:**Note:**
Recovery codes are not generated for U2F devices.
Recovery codes are not generated for U2F devices.
Immediately after successfully enabling two-factor authentication, you'll be prompted to download a set of set recovery codes. Should you ever lose access to your one time password authenticator, you can use one of them to log in to your account. We suggest copying them, printing them, or downloading them using
the **Download codes** button for storage in a safe place. If you choose to download them, the file will be called **gitlab-recovery-codes.txt**.
CAUTION: **Caution:**
CAUTION: **Caution:**
Each code can be used only once to log in to your account.
Each code can be used only once to log in to your account.
Immediately after successfully enabling two-factor authentication, you'll be
prompted to download a set of set recovery codes. Should you ever lose access
to your one time password authenticator, you can use one of them to log in to
your account. We suggest copying them, printing them, or downloading them using
the **Download codes** button for storage in a safe place. If you choose to
download them, the file will be called **gitlab-recovery-codes.txt**.
If you lose the recovery codes or just want to generate new ones, you can do so
If you lose the recovery codes or just want to generate new ones, you can do so