oauth2 token with read_repository scope failed to read my repository

Summary

oauth2 token with read_repository scope failed to read my repository, even without F2A enabled

Steps to reproduce

  1. Use the gitlab CE latest image.
  2. Create an oauth2 application with read_repository+api scope using root account.
  3. Authorize and get the access token for my user.
  4. git ls-remote // using access token as password failed with error remote: HTTP Basic: Access denied

What is the current bug behavior?

cannot use oauth2 token as password to use git over http

What is the expected correct behavior?

I can use oauth2 token the same as account password or person token. (What you should see instead)

Edited Aug 01, 2018 by LeviMa
Assignee Loading
Time tracking Loading