From 1e5cf3ef31d5321ce4691f49c9da6fdef7f20ef9 Mon Sep 17 00:00:00 2001 From: YannikMG <19749617+YannikMG@users.noreply.github.com> Date: Thu, 10 Sep 2026 11:37:22 +0200 Subject: [PATCH] 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 --- Jellyfin.Plugin.AnilistSync/API/Endpoints.cs | 2 +- .../Jellyfin.Plugin.AnilistSync.csproj | 4 ++-- build.yaml | 4 ++-- manifest.json | 10 +++++----- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Jellyfin.Plugin.AnilistSync/API/Endpoints.cs b/Jellyfin.Plugin.AnilistSync/API/Endpoints.cs index 89389e7..208911c 100644 --- a/Jellyfin.Plugin.AnilistSync/API/Endpoints.cs +++ b/Jellyfin.Plugin.AnilistSync/API/Endpoints.cs @@ -9,7 +9,7 @@ namespace Jellyfin.Plugin.AnilistSync.API /// Anilist endpoints. /// [ApiController] - [Authorize(Policy = "DefaultAuthorization")] + [Authorize] [Route("AnilistSync")] public class Endpoints : ControllerBase { diff --git a/Jellyfin.Plugin.AnilistSync/Jellyfin.Plugin.AnilistSync.csproj b/Jellyfin.Plugin.AnilistSync/Jellyfin.Plugin.AnilistSync.csproj index 5f9ff5b..3f91567 100644 --- a/Jellyfin.Plugin.AnilistSync/Jellyfin.Plugin.AnilistSync.csproj +++ b/Jellyfin.Plugin.AnilistSync/Jellyfin.Plugin.AnilistSync.csproj @@ -2,8 +2,8 @@ net10.0 - 3.0.0.0 - 3.0.0.0 + 3.0.0.1 + 3.0.0.1 true true enable diff --git a/build.yaml b/build.yaml index 18f8742..4f17cc8 100644 --- a/build.yaml +++ b/build.yaml @@ -1,7 +1,7 @@ --- name: "AnilistSync" guid: "18c2a8ea-afa0-4a0b-aa94-072b492ab80b" -version: "3.0.0.0" +version: "3.0.0.1" targetAbi: "12.0.0.0" owner: "ARufenach" overview: "Scrobble to Anilist" @@ -12,4 +12,4 @@ framework: "net10.0" artifacts: - "Jellyfin.Plugin.AnilistSync.dll" 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. diff --git a/manifest.json b/manifest.json index ccd7099..c4c9f36 100644 --- a/manifest.json +++ b/manifest.json @@ -8,12 +8,12 @@ "category": "General", "versions": [ { - "version": "3.0.0.0", - "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].", + "version": "3.0.0.1", + "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", - "sourceUrl": "https://git.umarumg.de/UmaruMG/AnilistSync/releases/download/v3.0.0.0/AnilistSync_3.0.0.0.zip", - "checksum": "0d9e73866422ff38a5e2bf305076f728", - "timestamp": "2026-09-10T08:54:12Z" + "sourceUrl": "https://git.umarumg.de/UmaruMG/AnilistSync/releases/download/v3.0.0.1/AnilistSync_3.0.0.1.zip", + "checksum": "c65d3c52bd3fa919e5bb9ad3e8d37f1b", + "timestamp": "2026-09-10T09:36:59Z" }, { "version": "2.1.0.0",