Stuck: "Your old project requires credentials for read-only access." When importing into GitHub? #7258

Closed
opened 2025-11-02 07:21:05 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @STaRDoGG on GitHub (Apr 27, 2021).

First time I'm trying to do this and am stuck in a loop trying to import a repo I have on my self-hosted Gitea.

I'm passing the repo URL like this:

https://my.gitea.repo/gitea/Scott/Dark-Nord-Material-Theme-for-WallaBag.git

I then enter my Gitea credentials, and it just loops right back to the same screen, as seen below:

image

I thought perhaps I was entering the wrong creds, and it wanted my GH creds instead, so I entered those: same result.

What am I doing wrong?

Currently using the latest Gitea as of this post, on Docker.

Originally created by @STaRDoGG on GitHub (Apr 27, 2021). First time I'm trying to do this and am stuck in a loop trying to import a repo I have on my self-hosted Gitea. I'm passing the repo URL like this: `https://my.gitea.repo/gitea/Scott/Dark-Nord-Material-Theme-for-WallaBag.git` I then enter my Gitea credentials, and it just loops right back to the same screen, as seen below: ![image](https://user-images.githubusercontent.com/1524526/116231800-f539de80-a71e-11eb-87a6-3b3a1fab924f.png) I thought perhaps I was entering the wrong creds, and it wanted my GH creds instead, so I entered those: same result. What am I doing wrong? Currently using the latest Gitea as of this post, on Docker.
Author
Owner

@KN4CK3R commented on GitHub (Apr 27, 2021):

Your gitea instance is reachable from the internet?

@KN4CK3R commented on GitHub (Apr 27, 2021): Your gitea instance is reachable from the internet?
Author
Owner

@STaRDoGG commented on GitHub (Apr 27, 2021):

Your gitea instance is reachable from the internet?

Yep

@STaRDoGG commented on GitHub (Apr 27, 2021): > Your gitea instance is reachable from the internet? Yep
Author
Owner

@STaRDoGG commented on GitHub (Apr 28, 2021):

Turns out I needed to set:

REQUIRE_SIGNIN_VIEW = false in my app.ini.

Think it has to do with my having 2FA enabled (not sure, but whatever).

@STaRDoGG commented on GitHub (Apr 28, 2021): Turns out I needed to set: `REQUIRE_SIGNIN_VIEW = false` in my `app.ini`. Think it has to do with my having 2FA enabled (not sure, but whatever).
Author
Owner

@6543 commented on GitHub (Apr 28, 2021):

@STaRDoGG it is, if you have 2FA enabled basicAuth do not work for git-clone/api

the way to go would be to create a token (witch should be used specific for one purpose)

@6543 commented on GitHub (Apr 28, 2021): @STaRDoGG it is, if you have 2FA enabled basicAuth do not work for git-clone/api the way to go would be to create a **token** (witch should be used specific for one purpose)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7258