Browse Source
Merge pull request #2582 from Budibase/fix/sso-fix
Fix SSO callback URL in single tenancy mode
pull/2594/head
Michael Drury
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
6 additions and
0 deletions
-
packages/worker/src/api/routes/global/auth.js
|
|
|
@ -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, |
|
|
|
|