ShareLinks plugin: guest share links for Jellyfin

Includes fix for redemption failing with DbUpdateConcurrencyException:
change the guest password before applying the user policy, since
UpdatePolicyAsync bumps the user's EF concurrency token and a stale
instance then breaks ChangePassword.
Cette révision appartient à :
Franciskid
2026-07-06 18:21:22 +02:00
révision c29ea7f20c
26 fichiers modifiés avec 3804 ajouts et 0 suppressions
+13
Voir le fichier
@@ -0,0 +1,13 @@
namespace Jellyfin.Plugin.ShareLinks.Models;
/// <summary>
/// A freshly generated share token and its persisted hash.
/// </summary>
public sealed class ShareTokenMaterial
{
/// <summary>Gets or sets the raw token returned once to the caller.</summary>
public string Token { get; set; } = string.Empty;
/// <summary>Gets or sets the HMAC hash stored durably.</summary>
public string TokenHash { get; set; } = string.Empty;
}