authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-09 00:01:37 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-09 00:01:37 -07:00
log34a458fd3f0868c4edd326f64aca0ed9d90bce26
treef8f851d0ec1a61251c20479bf30c6b4519879747
parenta4720925e4e66c7d185558e60c56eadf43f1fe47
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add forgejo provider


2 files changed, 11 insertions(+), 0 deletions(-)

README.md+1
......@@ -19,6 +19,7 @@ HTTP handler functions to allow you to easily add OAuth2 login support to your Z
1919- Microsoft
2020- Reddit
2121- Gitea
22- Forgejo
2223- GitLab
2324- Mastodon
2425- Pleroma
oauth2.zig+10
......@@ -147,6 +147,16 @@ pub const dynamic_providers = struct {
147147 .logo = icon_url("gitea"),
148148 .color = "#609926",
149149 };
150 pub const _forgejo = Provider{
151 .id = "forgejo",
152 .authorize_url = "https://{[domain]s}/login/oauth/authorize",
153 .token_url = "https://{[domain]s}/login/oauth/access_token",
154 .me_url = "https://{[domain]s}/api/v1/user",
155 .name_prop = "username",
156 .name_prefix = "@",
157 .logo = icon_url("forgejo"),
158 .color = "#FB923C",
159 };
150160 pub const _gitlab = Provider{
151161 .id = "gitlab",
152162 .authorize_url = "https://{[domain]s}/oauth/authorize",