Browse Source

Merge pull request #2562 from Budibase/feature/onboarding-backend

Account portal auth changes
gh-pages
Rory Powell 5 years ago
committed by GitHub
parent
commit
1e0c4c5736
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1101
      packages/server/yarn.lock
  2. 5
      packages/worker/src/api/index.js
  3. 2
      packages/worker/src/api/routes/global/users.js

1101
packages/server/yarn.lock

File diff suppressed because it is too large

5
packages/worker/src/api/index.js

@ -35,6 +35,7 @@ const PUBLIC_ENDPOINTS = [
method: "GET",
},
{
// TODO: Add an provisioning API key to this endpoint in the cloud
route: "/api/global/users/init",
method: "POST",
},
@ -46,6 +47,10 @@ const PUBLIC_ENDPOINTS = [
route: "api/system/flags",
method: "GET",
},
{
route: "/api/global/users/tenant/:id",
method: "GET",
},
]
const NO_TENANCY_ENDPOINTS = [

2
packages/worker/src/api/routes/global/users.js

@ -94,7 +94,7 @@ router
controller.adminUser
)
.get("/api/global/users/self", controller.getSelf)
.get("/api/global/users/tenant/:id", adminOnly, controller.tenantLookup)
.get("/api/global/users/tenant/:id", controller.tenantLookup)
// global endpoint but needs to come at end (blocks other endpoints otherwise)
.get("/api/global/users/:id", adminOnly, controller.find)

Loading…
Cancel
Save