AnilistSync 3.0.0.1: revert to bare [Authorize] for Jellyfin 12.0

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>
This commit is contained in:
2026-09-10 11:37:22 +02:00
co-authored by claude
parent 15dd74a12a
commit 1e5cf3ef31
4 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ namespace Jellyfin.Plugin.AnilistSync.API
/// Anilist endpoints. /// Anilist endpoints.
/// </summary> /// </summary>
[ApiController] [ApiController]
[Authorize(Policy = "DefaultAuthorization")] [Authorize]
[Route("AnilistSync")] [Route("AnilistSync")]
public class Endpoints : ControllerBase public class Endpoints : ControllerBase
{ {
@@ -2,8 +2,8 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net10.0</TargetFramework> <TargetFramework>net10.0</TargetFramework>
<AssemblyVersion>3.0.0.0</AssemblyVersion> <AssemblyVersion>3.0.0.1</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion> <FileVersion>3.0.0.1</FileVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<nullable>enable</nullable> <nullable>enable</nullable>
+2 -2
View File
@@ -1,7 +1,7 @@
--- ---
name: "AnilistSync" name: "AnilistSync"
guid: "18c2a8ea-afa0-4a0b-aa94-072b492ab80b" guid: "18c2a8ea-afa0-4a0b-aa94-072b492ab80b"
version: "3.0.0.0" version: "3.0.0.1"
targetAbi: "12.0.0.0" targetAbi: "12.0.0.0"
owner: "ARufenach" owner: "ARufenach"
overview: "Scrobble to Anilist" overview: "Scrobble to Anilist"
@@ -12,4 +12,4 @@ framework: "net10.0"
artifacts: artifacts:
- "Jellyfin.Plugin.AnilistSync.dll" - "Jellyfin.Plugin.AnilistSync.dll"
changelog: > changelog: >
Ported to Jellyfin 12.0 (net10.0, targetAbi 12.0.0.0). Switched plugin API controller to the DefaultAuthorization policy. Ported to Jellyfin 12.0 (net10.0, targetAbi 12.0.0.0). Reverted the API controller to a bare [Authorize] — Jellyfin 12.0 removed the named DefaultAuthorization policy in favour of the default policy.
+5 -5
View File
@@ -8,12 +8,12 @@
"category": "General", "category": "General",
"versions": [ "versions": [
{ {
"version": "3.0.0.0", "version": "3.0.0.1",
"changelog": "Ported to Jellyfin 12.0 (net10.0, targetAbi 12.0.0.0). Plugin API controller now uses the DefaultAuthorization policy instead of a bare [Authorize].", "changelog": "Ported to Jellyfin 12.0 (net10.0, targetAbi 12.0.0.0). Reverted the API controller to a bare [Authorize]: Jellyfin 12.0 removed the named DefaultAuthorization policy in favour of the default policy, so [Authorize(Policy = \"DefaultAuthorization\")] threw 'policy not found' on every plugin API call.",
"targetAbi": "12.0.0.0", "targetAbi": "12.0.0.0",
"sourceUrl": "https://git.umarumg.de/UmaruMG/AnilistSync/releases/download/v3.0.0.0/AnilistSync_3.0.0.0.zip", "sourceUrl": "https://git.umarumg.de/UmaruMG/AnilistSync/releases/download/v3.0.0.1/AnilistSync_3.0.0.1.zip",
"checksum": "0d9e73866422ff38a5e2bf305076f728", "checksum": "c65d3c52bd3fa919e5bb9ad3e8d37f1b",
"timestamp": "2026-09-10T08:54:12Z" "timestamp": "2026-09-10T09:36:59Z"
}, },
{ {
"version": "2.1.0.0", "version": "2.1.0.0",