#107 — MockedAuthService doesn’t allow to create tenant.

Repo: Twill-AI/facade State: closed | Status: done Assignee: Unassigned

Created: 2024-09-16 · Updated: 2025-09-15

Description

STR:

  • Run completely local Facade with empty database.
  • Try to create tenant via POST /self-management/tenant.

Expected: tenant created.

Actual: 400 code with

{
  "detail": "User(id='11111111-1111-1111-1111-111111111111', tenant_id='localtenan', scopes=[], name=None, disabled=False, created_at=datetime.datetime(2024, 9, 16, 19, 34, 28, 115525), email='localtenan@twillpayments.com', auth_type=<UserAuthType.EMAIL: 'email'>) already has tenant."
}

Notes

Add implementation notes, blockers, and context here

Add wikilinks to related people, meetings, or other tickets