Create Tenant and User in one call #600
-
Good evening guys, hope that question isn't silly. My current workflow to setup a tenant / sign up the initial user is wrapped in two api calls.
Works fine so far. The configuration is down below.
Now i would like to add the following scenarios, which is currently running into errors. I'd like to only send one request, create the tenant and then create the user right after. I tryed to set the tenantInfo after creating the tenant with:
but i'll receive an error from the userManager when trying to create the user:
I guess thats related to the TenantInfo which is somehow not set ccorrectly? when trying the exact request with e.g. the header value set, everything is working fine. If so could help it would be much appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
No it's not a silly question. I'm working on some functionality that will help in this common use case, but in the mean time I'll post some code here that will help you later tonight. |
Beta Was this translation helpful? Give feedback.
-
Sorry if I am hijacking this post but seemed to make sense rather than start a new thread on the same topic.
Thanks Nick |
Beta Was this translation helpful? Give feedback.
-
I'm writing my thesis on .NET Multi-tenant architecture and currently implementing a similar flow for creating tenant and admin user. Using hybrid tenant isolation model. Does anyone have a good example or description of how they have implemented this? |
Beta Was this translation helpful? Give feedback.
No it's not a silly question. I'm working on some functionality that will help in this common use case, but in the mean time I'll post some code here that will help you later tonight.