add GitHub and GitLab as Oauth2 sources #225
Labels
No labels
accessibility
bug
bug
infrastructure
Codeberg
contributions welcome
docs
duplicate
enhancement
infrastructure
legal
licence / ToS
please chill
we are volunteers
public relations
question
question
user support
s/Forgejo
s/Forgejo/migration
s/Pages
s/Weblate
s/Woodpecker
security
service
upstream
wontfix
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/Community#225
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this would make migration from GitHub/GitLab eaven easyer: user who have created an accounton Codeberg and linked this one with a GitHub account later, will automaticaly take over the ownership of issues/pulls/comments on repos witch had used the build-in Migration tool.
@6543
Personally I would like to support linking the account for issue/pulls/comments migration.
But I would like to do it without enabling "login/register with github". Accounts created that way behaved weird in our and tests by @davidak .
It that possible?
Noticed too, there is somehow a diffrence if you create fia github or link an account afterwards - but didn't digged into this rabit hole jet
sadly: NO
this is the general problem of how to make sure that someone realy own the account X on platform Y
Yes, this is what I mean, I would like to disable "create via github" but keep "link account afterwards". A patch for gitea/codeberg would be neccessary I guess.
@ashimokawa if we like to get it with v1.12.x I think a patch will be needed :/
upstream issue: https://github.com/go-gitea/gitea/issues/12342
upstream pull: https://github.com/go-gitea/gitea/pull/15795
ok did we come to the conclusion it's working fine ...?
can be tested on https://codeberg-test.org/ atm :D
Think so, missing thing is some explanation in the docs on how to connect?
well thinks so,
jut the hint we have to make sure...:
githubgitlabINFO:
Codeberg/gitea@0d3874b691will make it posible, on next deploy 🚀I tried to test this and failed, maybe at the CAPTCHA. #483
This would help a lot to convince projects to migrate to codeberg as their users can still contribute easily with github/gitlab account.
I don't know if the login sources are setup properly yet or maybe broken? Testing this is highly appreciated before we rollout to prod, I'm not sure about the current state.
We'll hit this issue up as soon as we get to this topic again ...
It should work all fine?
What do you rever to @fnetX ?
have you tested it? shouldn't take too long
it fails for me
steps to reproduce:
the browser console (Chromium 91.0.4472.114) says:
here is a video that shows the issue and how it works on https://try.gitea.io/
https://peertube.social/videos/watch/eaf0278a-f14c-4018-83cc-0c2a3706dea6
Yeah this isn't the supposed workflow. It's not described, because it's not on prod yet.
You have to register an account first, then sign-in with GitHub and link it.
Maybe this can be changed, but it's not the way it's supposed to work.
It's at least a bug that you see the sign-up tab after entering non-working credentials ...
whats the point in "sign in with github" if i need to register locally anyway?
You can link your account with migrated content. The issues do not longer show some random GitHub user, but your account etc ...
If possible, I personally don't object to logging in with GitHub, but we had issues with having access to the users mail address IIRC ...
hmm
https://codeberg-test.org/user/link_account_signinshould return 404 or better redirect to normal signupdone 🚀
It works now to link an existing account.
Tested on https://codeberg-test.org/.
Would be great if one could create an account just from GitHub login. So UX would be:
It uses the e-mail github has and you can reset your password with that address if github would disappear.
@davidak another issue - "enable auto account creation on oauth login" ... ;)