diff options
author | Rémy Coutable <remy@rymai.me> | 2016-10-27 16:19:20 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-10-27 16:19:20 +0000 |
commit | b3210df33e0e4af677666d2044f029c6aeac0d9e (patch) | |
tree | 56e3797a8bb158fe97e9a2043429a0591b7c97ad /doc | |
parent | 53086e110c7c1587ad326d5598aa06ba0d2b1443 (diff) | |
parent | 25f4c9334d80906b0155cea64cb6fcaff2f2110e (diff) | |
download | gitlab-ce-b3210df33e0e4af677666d2044f029c6aeac0d9e.tar.gz |
Merge branch 'patch-6' into 'master'
Documents that users with two-factor authentication enabled may also need to create a personal access token to use git over HTTPS.
To address a support issue (gitlab-com/support-forum#980) about why passwords don't work in git when two-factor auth is enabled.
gitlab-com/support-forum#980
See merge request !6616
Diffstat (limited to 'doc')
-rw-r--r-- | doc/profile/two_factor_authentication.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/profile/two_factor_authentication.md b/doc/profile/two_factor_authentication.md index 82505b13401..3f6dfe03d14 100644 --- a/doc/profile/two_factor_authentication.md +++ b/doc/profile/two_factor_authentication.md @@ -117,6 +117,22 @@ Click on **Authenticate via U2F Device** to complete the process. This will clear all your two-factor authentication registrations, including mobile applications and U2F devices. +## Personal access tokens + +When 2FA is enabled, you can no longer use your normal account password to +authenticate with Git over HTTPS on the command line, you must use a personal +access token instead. + +1. Log in to your GitLab account. +1. Go to your **Profile Settings**. +1. Go to **Access Tokens**. +1. Choose a name and expiry date for the token. +1. Click on **Create Personal Access Token**. +1. Save the personal access token somewhere safe. + +When using git over HTTPS on the command line, enter the personal access token +into the password field. + ## Note to GitLab administrators You need to take special care to that 2FA keeps working after |