Account Security
Overview
When you created a GitLab account by signing with Google, you authenticated your account with SSO or SAML. As such, you may encounter the following messages when you first create a project in GitLab.
Adding SSH Keys
Click Add SSH Key > Add new key. You will need to create an SSH key on your local computer.
Paste the public key on the Key field. Add a title and click Add key.
Add a Password
Click your profile photo > Edit profile > Password. Enter the password twice and click Save password.
Enable Two-Factor Authentication
Click your profile photo > Edit profile > Account > Enable two-factor authentication.
Open your authenticator app and scan the QR code. Once its save, enter the following:
- Current Password
- Verification code (from the authenticator app)
Click Register with authenticator app > Download recovery codes > Proceed. Once done, you should now see the 2FA enabled.
Personal Access Tokens
Personal Access Tokens (PATs) are used to authenticate and interact with the GitLab API. They are an alternative to using passwords for operations like cloning repositories or managing projects.
Click your profile photo > Edit profile > Access tokens > Add new token.
Add a token name, select the scopes, then click Create personal access token at the bottom.