geprog / CodeCaptain

Ask codecaptain everything you want to know about the source-code or issues of your project
https://codecaptain.ai
GNU Affero General Public License v3.0
7 stars 3 forks source link

gitlab cloning with accesstoken and 2fa enabled throws an error #17

Closed anbraten closed 1 year ago

anbraten commented 1 year ago

When using the accesstoken to clone repos from gitlab and having 2fa enabled we currently get an error like:

remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://git.geprog.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://....git/'

Originally posted by @anbraten in https://github.com/geprog/codecaptain/issues/16#issuecomment-1693270080

anbraten commented 1 year ago

@aaa006bd I fixed it by applying the correct oauth scopes