Skip to content

[Multi-Tenant] auth tenant service #3122

@njlie

Description

@njlie

The authorization server should have a simple tenant service to create, read, update, and delete tenants.

CreateOptions {
  id: string // not generated by auth server, but correlates to id for tenant on backend service
  idpConsentUrl: string
  idpSecret: string
}

TenantService {
  create: (input: CreateOptions) => Tenant
  get: (id: string) => Tenant
  update: (id: string, input: { ...tenantFields}) => Tenant
  delete: (id: string) => boolean
}
  • Create auth tenant service and add it to IoC container
  • create function
  • get function
  • update function
  • delete function

Prerequisites

Metadata

Metadata

Assignees

Labels

pkg: authChanges in the GNAP auth package.

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions