如题所述,简单记录一下如何配置 gitea 以使其支持 Mastodon OAuth2 认证登录。
gitea 如何安装本文不再赘述,只记录 OAuth2 配置部分。
Mastodon 方面
创建一个新应用,详情如下:
- Application name:
 - 
随便填
 - Application website:
 - 
随便填
 - Redirect URI:
 - 
https://git.bgme.me/user/oauth2/mastodon/callback - Scopes:
 - 
read:accounts 
Gitea 方面
打开 认证源(Authentication Sources),点击添加认证源(),详情如下:
- Authentication Type:
 - 
OAuth2
 - Authentication Name:
 - 
Mastodon
 - OAuth2 Provider:
 - 
Mastodon
 - Client ID (Key):
 - 
前一步内容
 - Client Secret:
 - 
前一步内容
 - Icon URL:
 - 
https://bgme.me/favicon.ico - Authorize URL:
 - 
https://bgme.me/ - Additional Scopes:
 - 
read:accounts