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...@@ -18,6 +18,7 @@ HTTP handler functions to allow you to easily add OAuth2 login support to your Z
18- Google18- Google
19- Microsoft19- Microsoft
20- Reddit20- Reddit
21- Railway
21- Gitea22- Gitea
22- Forgejo23- Forgejo
23- GitLab24- GitLab
oauth2.zig+11
...@@ -134,6 +134,17 @@ pub const providers = struct {...@@ -134,6 +134,17 @@ pub const providers = struct {
134 .logo = icon_url("reddit"),134 .logo = icon_url("reddit"),
135 .color = "#FF4500",135 .color = "#FF4500",
136 };136 };
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 };
137};148};
138149
139pub const dynamic_providers = struct {150pub const dynamic_providers = struct {