Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
5b781d2
Configure RuntimeApps.Authentication.csproj for .NET 10 and .NET 11
hifeamin Nov 20, 2026
19e207a
Configure RuntimeApps.Authentication.EF.csproj for .NET 10 and .NET 11
hifeamin Nov 20, 2026
7918065
Configure RuntimeApps.Authentication.Test.csproj for .NET 10 and .NET 11
hifeamin Nov 20, 2026
6b9f5aa
Configure RuntimeApps.Authentication.Sample.csproj for .NET 10 and .N…
hifeamin Nov 20, 2026
f8a60cb
Configure RuntimeApps.Authentication.Sample.ClaimAuthorize.csproj for…
hifeamin Nov 20, 2026
3ff0175
Configure RuntimeApps.Authentication.Sample.CookieAuthentication.cspr…
hifeamin Nov 20, 2026
14c019f
Configure RuntimeApps.Authentication.Sample.CustomClaim.csproj for .N…
hifeamin Nov 20, 2026
420c99a
Configure RuntimeApps.Authentication.Sample.CustomModel.csproj for .N…
hifeamin Nov 20, 2026
83f897b
Configure RuntimeApps.Authentication.Sample.CustomStore.csproj for .N…
hifeamin Nov 20, 2026
a417e86
Configure RuntimeApps.Authentication.Sample.CustomValidation.csproj f…
hifeamin Nov 20, 2026
ebe71be
Configure RuntimeApps.Authentication.Sample.RoleAuthorize.csproj for …
hifeamin Nov 20, 2026
be6d746
Configure publish.yml for .NET 10 and .NET 11
hifeamin Nov 20, 2026
f8e670e
Install .NET 10 and .NET 11 SDKs in publish workflow
hifeamin Nov 20, 2026
bdf3a76
Keep NuGet CLI SDK setup in deploy job
hifeamin Nov 20, 2026
ddafef9
Simplify .NET 11 project references in RuntimeApps.Authentication.Tes…
hifeamin Nov 20, 2026
d699f70
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
25a6e94
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
3560b25
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
dd5fb35
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
dab0ca9
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
da101c4
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
832944c
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
b8bdcc5
Simplify .NET 11 project references in RuntimeApps.Authentication.Sam…
hifeamin Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
10.0.x
11.0.x
- name: Build .NET 10 library targets
run: dotnet build RuntimeApps.Authentication.EF/RuntimeApps.Authentication.EF.csproj --configuration Release --framework net10.0
- name: Run tests
run: dotnet test --configuration Release

Expand All @@ -39,9 +45,13 @@ jobs:
with:
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer

# Install the .NET SDK indicated in the global.json file
# Install both SDKs required to build and pack the multi-targeted libraries.
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: |
10.0.x
11.0.x

# Create the NuGet package in the folder from the environment variable NuGetDirectory
- run: dotnet pack --configuration Release --output ${{ env.NuGetDirectory }} /p:PackageVersion=${{github.ref_name}}
Expand All @@ -56,8 +66,7 @@ jobs:

deploy:
# Publish only when creating a GitHub Release
# https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
# You can update this logic if you want to manage releases differently
# https://github.com/RuntimeApps/RuntimeApps.Authentication/releases
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
needs: [ run_test,create_nuget ]
Expand All @@ -70,9 +79,11 @@ jobs:
name: nuget
path: ${{ env.NuGetDirectory }}

# Install the .NET SDK indicated in the global.json file
- name: Setup .NET Core
# Install .NET SDK for the dotnet NuGet CLI.
- name: Setup .NET
uses: actions/setup-dotnet@v6
with:
dotnet-version: 11.0.x

# Exchange the OIDC token for a short-lived NuGet API key
- name: NuGet login (OIDC)
Expand All @@ -82,7 +93,6 @@ jobs:
user: ${{ secrets.NUGET_USER }} # nuget.org profile name, NOT your email

# Publish all NuGet packages to NuGet.org
# Use --skip-duplicate to prevent errors if a package with the same version already exists.
# If you retry a failed workflow, already published packages will be skipped without error.
# Use --skip-duplicate to prevent errors if the workflow is retried.
- name: Publish NuGet package
run: dotnet nuget push "${{ env.NuGetDirectory }}/*.nupkg" --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key "${{ steps.login.outputs.NUGET_API_KEY }}"
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="10.0.15" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="10.0.15" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
<ItemGroup Condition="'$(TargetFramework)' == 'net11.0'">
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="11.0.0" />
<PackageReference Include="Microsoft.Extensions.Identity.Stores" Version="11.0.0" />
</ItemGroup>

</Project>
15 changes: 13 additions & 2 deletions RuntimeApps.Authentication/RuntimeApps.Authentication.csproj
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFrameworks>net10.0;net11.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Google.Apis.Auth" Version="1.78.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.15" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection" Version="10.0.15" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="10.0.15" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="10.0.15" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.15" />
</ItemGroup>

</Project>
<ItemGroup Condition="'$(TargetFramework)' == 'net11.0'">
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="11.0.0" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection" Version="11.0.0" />
<PackageReference Include="Microsoft.Extensions.Identity.Core" Version="11.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="11.0.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="11.0.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.15">
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="11.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.15" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="11.0.0" />
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.15">
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="11.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.15" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="11.0.0" />
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.15">
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="11.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.15" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="11.0.0" />
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.15" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="10.0.15">
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="11.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="11.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.15" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="11.0.0" />
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.15">
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="11.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="10.0.15" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="11.0.0" />
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.15" />
<PackageReference Include="MailKit" Version="4.18.2" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="11.0.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="11.0.0" />
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<TargetFramework>net11.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<OutputType>Exe</OutputType>
<IsPackable>false</IsPackable>
Expand All @@ -11,10 +11,7 @@
<PackageReference Include="FluentAssertions" Version="8.11.0" />
<PackageReference Include="Moq" Version="4.21.0" />
<PackageReference Include="xunit.v3" Version="4.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="10.0.15" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="11.0.0" />
<ProjectReference Include="..\..\RuntimeApps.Authentication\RuntimeApps.Authentication.csproj" />
<ProjectReference Include="..\..\RuntimeApps.Authentication.EF\RuntimeApps.Authentication.EF.csproj" />
</ItemGroup>
Expand Down
Loading