Jellyfin 12.0 removed the named "DefaultAuthorization" policy; it's now options.DefaultPolicy (CustomAuthentication scheme + DefaultAuthorizationRequirement). [Authorize(Policy = "DefaultAuthorization")] therefore threw InvalidOperationException: "policy not found" on every /AnilistSync/* call. Bare [Authorize] uses the default policy, which is the intended form. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
41 lines
1.4 KiB
XML
41 lines
1.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<AssemblyVersion>3.0.0.1</AssemblyVersion>
|
|
<FileVersion>3.0.0.1</FileVersion>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
<nullable>enable</nullable>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Jellyfin.Controller" Version="12.*-*" ExcludeAssets="runtime" />
|
|
</ItemGroup>
|
|
|
|
<!-- Code Analyzers-->
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="10.0.100" PrivateAssets="All" />
|
|
<PackageReference Include="SerilogAnalyzer" Version="0.15.0" PrivateAssets="All" />
|
|
<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" />
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<None Remove="Configuration\configPage.html" />
|
|
<EmbeddedResource Include="Configuration\configPage.html" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
|
<NoWarn>1701;1702;</NoWarn>
|
|
<WarningLevel>5</WarningLevel>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<FrameworkReference Include="Microsoft.AspNetCore.App" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|