1
0
Fork 0
mirror of synced 2024-07-01 12:30:41 +12:00

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

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",