How can I make the tenancyName case insensitive?
See original GitHub issueFor now, the tenancyName is case sensitive. But I don’t think it should be that.
In my case, I used DomainTenantResolveContributer
to resolve tenant by domain, and now, I can got tenant “Default” with “http://Default.mydomain.com” but not with “http://default.mydomain.com”.
And I don’t know why my browser always keeps the host lowercase in the address bar, even though I typed in uppercase.
I don’t think most users can distinguish case of the host.
So why don’t we make the Tenant
like the User or Role that identify by a normalized name?
How can I make the tenancyName case insensitive in current abp?
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Allow case-insensitive tenant names in ShellHost, Lombiq ...
A new HttpBackgroundJob helper component, allow case-insensitive tenant names in ShellHost , and a demo about the Lombiq PowerShell ...
Read more >Manage tenants-Azure Sphere
Names are case sensitive. When you create a tenant, the Azure Sphere Security Service records the device ID of the attached device.
Read more >How to enable case-insensitive property name matching ...
Learn how to enable case-insensitive property name matching while serializing to and deserializing from JSON in .NET.
Read more >sql server - Case Sensitive join TSQL
I have a simple left outer join to a table that is returning an ID. My code is as. Select distinct TenantID ,Name...
Read more >[Dev] Make tenant domain names case insensitive
[Dev] Make tenant domain names case insensitive ... Hi All, How do we $subject ? thanks, -- Supun Malinga, Senior Software Engineer, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Mardoxx I’m using PostgreSQL, but I think most of SQL will translate the
==
to case sensitive comparison.I think the standardized Tenant name is better. Before discussing the results, you can rewrite https://github.com/aspnetboilerplate/aspnetboilerplate/blob/bc266e3503fcb2825684ec829cc356815f94f397/src/Abp.Zero.Common/MultiTenancy/TenantCache.cs#L110-L119
GetTenantOrNull(string tenancyName)