I have an API (based on dotnet core 5 if it matters) that supports multi tenancy. all requests must have a custom header (like X) that indicates the selected tenant. So based on this scenario I have two main questions.
- Is it true to accept tenant via header? (any security consideration or another suggestion would be appropriate)
- Is it true to return HTTP status code 417 when clients request a tenant that does not exist or is not valid?