Merge pull request #2562 from Budibase/feature/onboarding-backend
Account portal auth changes
This commit is contained in:
commit
72cba85602
3 changed files with 24 additions and 1084 deletions
File diff suppressed because it is too large
Load diff
|
@ -35,6 +35,7 @@ const PUBLIC_ENDPOINTS = [
|
||||||
method: "GET",
|
method: "GET",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
// TODO: Add an provisioning API key to this endpoint in the cloud
|
||||||
route: "/api/global/users/init",
|
route: "/api/global/users/init",
|
||||||
method: "POST",
|
method: "POST",
|
||||||
},
|
},
|
||||||
|
@ -46,6 +47,10 @@ const PUBLIC_ENDPOINTS = [
|
||||||
route: "api/system/flags",
|
route: "api/system/flags",
|
||||||
method: "GET",
|
method: "GET",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
route: "/api/global/users/tenant/:id",
|
||||||
|
method: "GET",
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
const NO_TENANCY_ENDPOINTS = [
|
const NO_TENANCY_ENDPOINTS = [
|
||||||
|
|
|
@ -94,7 +94,7 @@ router
|
||||||
controller.adminUser
|
controller.adminUser
|
||||||
)
|
)
|
||||||
.get("/api/global/users/self", controller.getSelf)
|
.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)
|
// global endpoint but needs to come at end (blocks other endpoints otherwise)
|
||||||
.get("/api/global/users/:id", adminOnly, controller.find)
|
.get("/api/global/users/:id", adminOnly, controller.find)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue