From d03229cabaf9046bf6051c3837e9a490632c27e5 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 26 Jul 2021 13:23:11 +0100 Subject: [PATCH] Adding in admin API backwards compat. --- packages/worker/src/api/routes/global/auth.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/worker/src/api/routes/global/auth.js b/packages/worker/src/api/routes/global/auth.js index 1546cb1c0a..23393a3258 100644 --- a/packages/worker/src/api/routes/global/auth.js +++ b/packages/worker/src/api/routes/global/auth.js @@ -53,9 +53,10 @@ router ) .get("/api/global/auth/:tenantId/oidc/callback", authController.oidcAuth) // deprecated - used by the default system before tenancy - .get("/api/global/auth/google", authController.googlePreAuth) + .get("/api/admin/auth/google/callback", authController.googleAuth) .get("/api/global/auth/google/callback", authController.googleAuth) - .get("/api/global/auth/oidc/configs/:configId", authController.oidcPreAuth) + .get("/api/admin/auth/oidc/callback", authController.oidcAuth) .get("/api/global/auth/oidc/callback", authController.oidcAuth) + module.exports = router