Making old google/oidc callback endpoints public.

This commit is contained in:
mike12345567 2021-08-05 12:00:33 +01:00
parent e91289e10d
commit 9197a6e124
1 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,15 @@ const { buildAuthMiddleware, auditLog, buildTenancyMiddleware } =
require("@budibase/auth").auth
const PUBLIC_ENDPOINTS = [
// old deprecated endpoints kept for backwards compat
{
route: "/api/admin/auth/google/callback",
method: "GET",
},
{
route: "/api/admin/auth/oidc/callback",
method: "GET",
},
{
// this covers all of the POST auth routes
route: "/api/global/auth/:tenantId",