Skip to content

Commit e30f14c

Browse files
authored
Merge pull request #1120 from ITfoxtec/test
Test
2 parents 2693a62 + b998212 commit e30f14c

File tree

7 files changed

+23
-9
lines changed

7 files changed

+23
-9
lines changed

src/FoxIDs.Control/FoxIDs.Control.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.15.7</Version>
5+
<Version>1.15.8</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>ITfoxtec</Company>

src/FoxIDs.ControlClient/FoxIDs.ControlClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.15.7</Version>
5+
<Version>1.15.8</Version>
66
<RootNamespace>FoxIDs.Client</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>ITfoxtec</Company>

src/FoxIDs.ControlClient/Logic/RouteBindingLogic.cs

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public RouteBindingLogic(ClientSettings clientSettings, IServiceProvider service
3737
this.authenticationStateProvider = authenticationStateProvider;
3838
}
3939

40-
public bool IsMasterTenant => Constants.Routes.MasterTenantName.Equals(tenantName, StringComparison.OrdinalIgnoreCase);
40+
public bool IsMasterTenant => Constants.Routes.MasterTenantName.Equals(GetTenantNameLocal(), StringComparison.OrdinalIgnoreCase);
4141

4242
public bool IsMasterTrack => trackSelectedLogic.Track != null && Constants.Routes.MasterTrackName.Equals(trackSelectedLogic.Track.Name, StringComparison.OrdinalIgnoreCase);
4343

@@ -76,6 +76,15 @@ public async Task<string> GetTenantNameAsync()
7676
return tenantName;
7777
}
7878

79+
private string GetTenantNameLocal()
80+
{
81+
if (tenantName.IsNullOrEmpty())
82+
{
83+
SetTenantName();
84+
}
85+
return tenantName;
86+
}
87+
7988
public string GetFoxIDsTenantEndpoint()
8089
{
8190
if (trackSelectedLogic.Track != null && !IsMasterTrack && !IsMasterTenant && myTenant != null && myTenant.CustomDomainVerified)
@@ -108,15 +117,20 @@ public string GetBaseUri()
108117

109118
public async Task InitRouteBindingAsync()
110119
{
111-
var urlSplit = navigationManager.ToBaseRelativePath(navigationManager.Uri).Split('/');
112-
tenantName = urlSplit[0];
120+
SetTenantName();
113121
await ValidateAndUpdateSessionTenantName();
114122
if (!IsMasterTenant)
115123
{
116124
await LoadMyTenantAsync();
117125
}
118126
}
119127

128+
public void SetTenantName()
129+
{
130+
var urlSplit = navigationManager.ToBaseRelativePath(navigationManager.Uri).Split('/');
131+
tenantName = urlSplit[0];
132+
}
133+
120134
private async Task ValidateAndUpdateSessionTenantName()
121135
{
122136
var tenanSession = await sessionStorage.GetItemAsync<string>(tenanSessionKey);

src/FoxIDs.ControlShared/FoxIDs.ControlShared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.15.7</Version>
5+
<Version>1.15.8</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>ITfoxtec</Company>

src/FoxIDs.Shared/FoxIDs.Shared.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.15.7</Version>
5+
<Version>1.15.8</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>ITfoxtec</Company>

src/FoxIDs.SharedBase/FoxIDs.SharedBase.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>net9.0</TargetFramework>
5-
<Version>1.15.7</Version>
5+
<Version>1.15.8</Version>
66
<RootNamespace>FoxIDs</RootNamespace>
77
<Authors>Anders Revsgaard</Authors>
88
<Company>ITfoxtec</Company>

src/FoxIDs/FoxIDs.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22
<PropertyGroup>
33
<TargetFramework>net9.0</TargetFramework>
4-
<Version>1.15.7</Version>
4+
<Version>1.15.8</Version>
55
<RootNamespace>FoxIDs</RootNamespace>
66
<Authors>Anders Revsgaard</Authors>
77
<Company>ITfoxtec</Company>

0 commit comments

Comments
 (0)