Linking Gitea Accounts

Bonjour,

Today’s Codeberg newsletter has something related to linking Gitea accounts to external accounts (GitHub or GitLab). I’m curious to know if this is still a Codeberg specific feature or something that already landed in Gitea. My interest is mostly because it is something federation features needs.

Cheers

OAuth linking: Migration from other services to Gitea is already a nice and convenient feature for a long time. However, previous comments were not assigned to the original author. Now, you can link your GitHub and GitLab.com profiles to Codeberg and migrated content links to your Codeberg profile and login to Codeberg using those providers once linked. This feature is of course fully optional, please be aware that the third-party providers will learn about your linking and login attempts if you use the quick login feature. Here is how it works:

  • Register a Codeberg account as usual (not necessary as you have it)
  • click on “Link Account” at the sign in page
  • choose a third-party provider and authorize Codeberg (you will share data with them)
  • migrated content now links to your profile
  • you can also use these to login to Codeberg if this is more convenient for you, but they’ll learn about your logins then.

It is already available and working, although not documented. The Authentication Sources tab of the Admin page has a OAuth2 menu entry.

It can be used to setup a GitLab provider:

And it will show on the login page:

It looks like the mapping between external id and Gitea id has been around since 2019 which makes me wonder why Codeberg announced it. I probably missed something…