-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Labels
pkg: backendChanges in the backend package.Changes in the backend package.
Milestone
Description
The backend should provide a tenant service that other services can use to retrieve tenant information, given an id.
Pseudocode for Tenant service:
CreateOptions {
publicName: string
email: string
apiSecret: string
idpConsentUrl: string
idpSecret: string
}
TenantService {
create: (options: CreateOptions) => Tenant
get: (id: string) => Tenant
update(id: string, input: { ...tenantFields }
delete: (id: string) => boolean
}
- Create TenantService and add it to IoC container
-
createfunctioncreatefunction should call create tenant endpoint on auth server admin api
-
getfunction -
updatefunction -
deletefunctiondeletefunction should call delete tenant endpoint on auth server admin api- use soft deletion
Prerequisites
Metadata
Metadata
Assignees
Labels
pkg: backendChanges in the backend package.Changes in the backend package.
Type
Projects
Status
Done