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...@@ -19,6 +19,7 @@ HTTP handler functions to allow you to easily add OAuth2 login support to your Z
19- Microsoft19- Microsoft
20- Reddit20- Reddit
21- Gitea21- Gitea
22- Forgejo
22- GitLab23- GitLab
23- Mastodon24- Mastodon
24- Pleroma25- Pleroma
oauth2.zig+10
...@@ -147,6 +147,16 @@ pub const dynamic_providers = struct {...@@ -147,6 +147,16 @@ pub const dynamic_providers = struct {
147 .logo = icon_url("gitea"),147 .logo = icon_url("gitea"),
148 .color = "#609926",148 .color = "#609926",
149 };149 };
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 };
150 pub const _gitlab = Provider{160 pub const _gitlab = Provider{
151 .id = "gitlab",161 .id = "gitlab",
152 .authorize_url = "https://{[domain]s}/oauth/authorize",162 .authorize_url = "https://{[domain]s}/oauth/authorize",