1
0
Fork 0
mirror of synced 2024-09-30 09:07:25 +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 9389fc46f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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