From 8ebcff7390011ee557aef2d79c2271c137c409e5 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 14 Apr 2026 23:43:53 +0000 Subject: [PATCH] Fix oauth callback for arcgis to be under oauth prefix That way it gets through the Vite proxy. --- config/config.go | 2 +- sync/routes.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index fef6cd40..b3ad2fb9 100644 --- a/config/config.go +++ b/config/config.go @@ -209,5 +209,5 @@ func Parse() (err error) { } func ArcGISOauthRedirectURL() string { - return MakeURLNidus("/arcgis/oauth/callback") + return MakeURLNidus("/oauth/arcgis/callback") } diff --git a/sync/routes.go b/sync/routes.go index 9defd13b..f6b832ad 100644 --- a/sync/routes.go +++ b/sync/routes.go @@ -8,7 +8,7 @@ import ( func Router(r *mux.Router) { // Unauthenticated endpoints r.HandleFunc("/oauth/arcgis/begin", getArcgisOauthBegin) - r.HandleFunc("/arcgis/oauth/callback", getArcgisOauthCallback) + r.HandleFunc("/oauth/arcgis/callback", getArcgisOauthCallback) r.HandleFunc("/mailer/pool/random", getMailerPoolRandom) r.HandleFunc("/mailer/mode-1", getMailer1) r.HandleFunc("/mailer/mode-2", getMailer2)