1
0
Fork 0
mirror of synced 2024-10-01 17:47:46 +13:00

Merge pull request #2582 from Budibase/fix/sso-fix

Fix SSO callback URL in single tenancy mode
This commit is contained in:
Michael Drury 2021-09-10 09:24:36 +01:00 committed by GitHub
commit 5681f183e7

View file

@ -61,6 +61,9 @@ router
updateTenant, updateTenant,
authController.googlePreAuth authController.googlePreAuth
) )
// single tenancy endpoint
.get("/api/global/auth/google/callback", authController.googleAuth)
// multi-tenancy endpoint
.get( .get(
"/api/global/auth/:tenantId/google/callback", "/api/global/auth/:tenantId/google/callback",
updateTenant, updateTenant,
@ -71,6 +74,9 @@ router
updateTenant, updateTenant,
authController.oidcPreAuth authController.oidcPreAuth
) )
// single tenancy endpoint
.get("/api/global/auth/oidc/callback", authController.oidcAuth)
// multi-tenancy endpoint
.get( .get(
"/api/global/auth/:tenantId/oidc/callback", "/api/global/auth/:tenantId/oidc/callback",
updateTenant, updateTenant,