Commit Graph
11 Commits
Author SHA1 Message Date
dtourolle 7be07d16a2 Implement Watched Together shared viewing accounts
🧪 Test Plugin / test (push) Has been cancelled
🏗️ Build Plugin / build (push) Has been cancelled
Replaces the plugin template with a working plugin that lets several
users share one viewing account while keeping their individual watched
lists accurate.

Three pieces:

- Auto-creating groups. Logging in as "alice+bob" with any named
  member's own password provisions the shared account and signs you in.
  Verified against 10.11.5: AuthenticateUser offers unmatched usernames
  to every enabled provider and re-queries afterwards, which is the hook
  this relies on. Gated on a real member password so knowing two
  usernames is not enough to create an account.

- Multi-password authentication. IRequiresResolvedUser hands us the
  resolved shared account; each member's live stored hash is checked via
  ICryptoProvider.Verify. Deliberately avoids re-entering
  UserManager.AuthenticateUser, which would trip every member's
  failed-attempt counter whenever a different member's password matched.

- One-way played-state sync. Shared account to members only, filtered to
  PlaybackFinished/TogglePlayed/Import so playback progress ticks are
  ignored. No loop guard needed: member writes carry a non-shared id.

Membership is stored as user IDs rather than re-parsed from the username,
so shared accounts can be renamed freely. The +/name collision resolves
itself because Jellyfin only consults the plugin when no local user
matches the typed name.

Targets Jellyfin 10.11.x / net9.0. Adds Gitea CI (test, build, release),
a builder image, and 34 tests covering the auth and sync rules.
2026-07-29 00:00:13 +02:00
K3rnelPan1c b86bd1fab9 fix: meta ci workflows 2022-05-15 23:24:15 +02:00
4afb53ea6d Apply suggestions from code review
Co-authored-by: K3rnelPan1c <33120068+h1dden-da3m0n@users.noreply.github.com>
2022-03-19 10:01:24 -06:00
Cody Robibero 144b31bf15 Use meta ci 2022-03-19 08:41:09 -06:00
dependabot[bot]andGitHub 9cc8711a26 ci(deps): bump actions/setup-dotnet from 1 to 2
Bumps [actions/setup-dotnet](https://github.com/actions/setup-dotnet) from 1 to 2.
- [Release notes](https://github.com/actions/setup-dotnet/releases)
- [Commits](https://github.com/actions/setup-dotnet/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/setup-dotnet
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-01 16:01:13 +00:00
Cody Robibero 7cc0743a93 update ci, actually add ruleset 2021-12-14 07:44:50 -07:00
h1dden-da3m0n 97aebd982f add missed out --no-restore 2021-03-19 21:46:57 +01:00
h1dden-da3m0n 0c0e58ea8e address review comments 2021-01-09 17:37:45 +01:00
h1dden-da3m0n a2ca9b07b2 add dependabot config 2021-01-09 17:24:41 +01:00
h1dden-da3m0n dd205ce966 add CodeQL GHA workflow 2021-01-09 17:24:41 +01:00
h1dden-da3m0n de381c1deb add basic .Net build and test GHA workflow 2021-01-09 17:24:41 +01:00