Merge pull request #2562 from Budibase/feature/onboarding-backend
Account portal auth changes
This commit is contained in:
commit
72cba85602
File diff suppressed because it is too large
Load Diff
|
@ -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 = [
|
||||
|
|
|
@ -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…
Reference in New Issue