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
+2 -2
View File
@@ -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.