Skip to content

Commit e019aeb

Browse files
artmasaArturo Martinez
and
Arturo Martinez
authored
adding explicit target frameworks to mitigate issues between aspnetcore and model identity (#60)
* adding explicit target frameworks to mitigate issues between aspnetcore and model-identity Co-authored-by: Arturo Martinez <[email protected]>
1 parent 20483e1 commit e019aeb

6 files changed

+19
-18
lines changed

src/abstractions/DarkLoop.Azure.Functions.Authorization.Abstractions.csproj

+14-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<AssemblyName>DarkLoop.Azure.Functions.Authorization.Abstractions</AssemblyName>
55
<RootNamespace>DarkLoop.Azure.Functions.Authorization</RootNamespace>
6-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
6+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
77
<Version>0.0.1-preview</Version>
88
<Description>DarkLoop's Azure Functions authorization extension shared core functionality for InProc and Isolated modules.</Description>
99
<Nullable>enable</Nullable>
@@ -21,16 +21,27 @@
2121

2222
<ItemGroup>
2323
<FrameworkReference Include="Microsoft.AspNetCore.App" />
24-
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="3.0.3" />
25-
<PackageReference Include="Microsoft.AspNetCore.Metadata" Version="3.0.3" />
2624
</ItemGroup>
2725

2826
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
27+
<PackageReference Include="Microsoft.AspNetCore.Metadata" Version="6.0.0" />
2928
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.0" />
29+
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.0" />
30+
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="6.10.0" />
3031
</ItemGroup>
3132

3233
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
34+
<PackageReference Include="Microsoft.AspNetCore.Metadata" Version="7.0.0" />
3335
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0" />
36+
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="7.0.0" />
37+
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="7.0.0" />
38+
</ItemGroup>
39+
40+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
41+
<PackageReference Include="Microsoft.AspNetCore.Metadata" Version="8.0.0" />
42+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.0" />
43+
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="8.0.0" />
44+
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.0.0" />
3445
</ItemGroup>
3546

3647
<ItemGroup>

src/in-proc/DarkLoop.Azure.Functions.Authorization.InProcess.csproj

+1-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<RootNamespace>DarkLoop.Azure.Functions.Authorization</RootNamespace>
55
<AssemblyName>DarkLoop.Azure.Functions.Authorization.InProcess</AssemblyName>
6-
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
6+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
77
<Version>0.0.1-preview</Version>
88
<UserSecretsId>3472ff41-3859-4101-a2da-6c37d751fd31</UserSecretsId>
99
<Description>Azure Functions V3 and V4 (InProc) extension to enable authentication and authorization on a per function basis based on ASPNET Core frameworks.</Description>
@@ -33,16 +33,6 @@
3333
</PackageReference>
3434
</ItemGroup>
3535

36-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
37-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.0" />
38-
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="6.0.0" />
39-
</ItemGroup>
40-
41-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
42-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="7.0.0" />
43-
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="7.0.0" />
44-
</ItemGroup>
45-
4636
<ItemGroup>
4737
<ProjectReference Include="..\abstractions\DarkLoop.Azure.Functions.Authorization.Abstractions.csproj" />
4838
</ItemGroup>

src/isolated/DarkLoop.Azure.Functions.Authorization.Isolated.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<AssemblyName>DarkLoop.Azure.Functions.Authorization.Isolated</AssemblyName>
55
<RootNamespace>DarkLoop.Azure.Functions.Authorization</RootNamespace>
6-
<TargetFramework>net6.0</TargetFramework>
6+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
77
<Version>0.0.1-preview</Version>
88
<Description>Azure Functions V4 in Isolated mode extension to enable authentication and authorization on a per function basis based on ASPNET Core frameworks.</Description>
99
<Nullable>enable</Nullable>

test/Abstractions.Tests/Abstractions.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net7.0</TargetFrameworks>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77

test/InProc.Tests/InProc.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>

test/Isolated.Tests/Isolated.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)