authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-09 00:02:10 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-09 00:02:10 -07:00
log3f0e7ee7b2d040284c0ccb5556853bcf25e8f224
tree55d2fc764513e7a1cd63b901f6edd18d174a7776
parent34a458fd3f0868c4edd326f64aca0ed9d90bce26
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add railway provider


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

README.md+1
......@@ -18,6 +18,7 @@ HTTP handler functions to allow you to easily add OAuth2 login support to your Z
1818- Google
1919- Microsoft
2020- Reddit
21- Railway
2122- Gitea
2223- Forgejo
2324- GitLab
oauth2.zig+11
......@@ -134,6 +134,17 @@ pub const providers = struct {
134134 .logo = icon_url("reddit"),
135135 .color = "#FF4500",
136136 };
137 pub var railway = Provider{
138 .id = "railway",
139 .authorize_url = "https://backboard.railway.com/oauth/auth",
140 .token_url = "https://backboard.railway.com/oauth/token",
141 .me_url = "https://backboard.railway.com/oauth/me",
142 .scope = "openid+profile",
143 .name_prop = "name",
144 .name_prefix = "",
145 .logo = icon_url("railway"),
146 .color = "#0B0D0E",
147 };
137148};
138149
139150pub const dynamic_providers = struct {