Skip to content

Commit 5272b5a

Browse files
committed
Added possibility to add multiple redirect and logout uris for IdentityServerClients
1 parent 0775fa7 commit 5272b5a

File tree

9 files changed

+28
-11
lines changed

9 files changed

+28
-11
lines changed

src/AspNetCore/FluiTec.AppFx.AspNetCore/FluiTec.AppFx.AspNetCore.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.48</Version>
13+
<Version>1.0.50</Version>
1414
</PropertyGroup>
1515

1616
<ItemGroup>
@@ -19,7 +19,7 @@
1919
<PackageReference Include="FluiTec.AppFx.Authorization.Activity.Dynamic" Version="1.0.10" />
2020
<PackageReference Include="FluiTec.AppFx.DataProtection.Dynamic" Version="1.0.4" />
2121
<PackageReference Include="FluiTec.AppFx.Identity.Dynamic" Version="1.0.15" />
22-
<PackageReference Include="FluiTec.AppFx.IdentityServer.Dynamic" Version="1.0.21" />
22+
<PackageReference Include="FluiTec.AppFx.IdentityServer.Dynamic" Version="1.0.23" />
2323
<PackageReference Include="FluiTec.AppFx.Localization" Version="1.0.9" />
2424
<PackageReference Include="FluiTec.AppFx.Localization.Dynamic" Version="1.0.9" />
2525
<PackageReference Include="FluiTec.AppFx.Mail" Version="1.0.16" />

src/IdentityServer/FluiTec.AppFx.IdentityServer.Dapper.Mssql/FluiTec.AppFx.IdentityServer.Dapper.Mssql.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.23</Version>
13+
<Version>1.0.25</Version>
1414
</PropertyGroup>
1515

1616
<ItemGroup>

src/IdentityServer/FluiTec.AppFx.IdentityServer.Dapper.Mysql/FluiTec.AppFx.IdentityServer.Dapper.Mysql.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.21</Version>
13+
<Version>1.0.23</Version>
1414
</PropertyGroup>
1515

1616
<Target Name="NugetTarget" AfterTargets="Build" Condition="'$(ConfigurationName)'=='Release'">

src/IdentityServer/FluiTec.AppFx.IdentityServer.Dapper.Pgsql/FluiTec.AppFx.IdentityServer.Dapper.Pgsql.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.21</Version>
13+
<Version>1.0.23</Version>
1414
</PropertyGroup>
1515

1616
<ItemGroup>

src/IdentityServer/FluiTec.AppFx.IdentityServer.Dapper/FluiTec.AppFx.IdentityServer.Dapper.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.20</Version>
13+
<Version>1.0.22</Version>
1414
</PropertyGroup>
1515

1616
<ItemGroup>

src/IdentityServer/FluiTec.AppFx.IdentityServer.Dynamic/FluiTec.AppFx.IdentityServer.Dynamic.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.21</Version>
13+
<Version>1.0.23</Version>
1414
</PropertyGroup>
1515

1616
<ItemGroup>

src/IdentityServer/FluiTec.AppFx.IdentityServer.LiteDb/FluiTec.AppFx.IdentityServer.LiteDb.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.17</Version>
13+
<Version>1.0.19</Version>
1414
</PropertyGroup>
1515

1616
<ItemGroup>

src/IdentityServer/FluiTec.AppFx.IdentityServer/ClientStore.cs

+19-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public Task<Client> FindClientByIdAsync(string clientId)
4747
ClientSecrets = new List<Secret>(new[] {new Secret(entity.Client.Secret.Sha256())}),
4848
AllowedGrantTypes = entity.Client.GrantTypes?.Split(','),
4949
AllowedScopes = entity.Scopes.Select(s => s.Name).ToList(),
50-
RedirectUris = new List<string>(new[] {entity.Client.RedirectUri}),
51-
PostLogoutRedirectUris = new List<string>(new[] {entity.Client.PostLogoutUri}),
50+
RedirectUris = new List<string>(GetUrisSplit(entity.Client.RedirectUri)),
51+
PostLogoutRedirectUris = new List<string>(GetUrisSplit(entity.Client.PostLogoutUri)),
5252
AllowOfflineAccess = entity.Client.AllowOfflineAccess,
5353
AlwaysIncludeUserClaimsInIdToken = true,
5454
AlwaysSendClientClaims = false,
@@ -61,6 +61,23 @@ public Task<Client> FindClientByIdAsync(string clientId)
6161
}
6262
}
6363

64+
/// <summary> Gets uris split. </summary>
65+
/// <param name="value"> The value. </param>
66+
/// <returns> The uris split. </returns>
67+
private List<string> GetUrisSplit(string value)
68+
{
69+
if (string.IsNullOrWhiteSpace(value))
70+
return new List<string>();
71+
if (value.Contains(','))
72+
{
73+
return value.Split(',').ToList();
74+
}
75+
else
76+
{
77+
return new List<string>(new [] {value});
78+
}
79+
}
80+
6481
#endregion
6582
}
6683
}

src/IdentityServer/FluiTec.AppFx.IdentityServer/FluiTec.AppFx.IdentityServer.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<PostBuildEvent></PostBuildEvent>
1111
<PreBuildEvent></PreBuildEvent>
1212
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
13-
<Version>1.0.18</Version>
13+
<Version>1.0.20</Version>
1414
</PropertyGroup>
1515

1616
<ItemGroup>

0 commit comments

Comments
 (0)