K0lin/jellyfin-plugin-sso
حول
This plugin allows users to sign in through an SSO provider (such as Google, Microsoft, or your own provider). This enables one-click signin.
الأمان والخصوصيةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- جارٍ جمع السجل
- خلال 15 يومًا
- جارٍ جمع السجل
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلJellyfin SSO Plugin
This project has been forked from the creator's code, with the intention of continuing to maintain it and add features. If you use it, please open discussions or issues so we can continue development as best as possible.
About
This plugin allows users to sign in through an SSO provider (such as Google, Microsoft, or your own provider). This enables one-click signin.
Existing users may link new SSO accounts, or remove existing links using self-service at /SSOViews/linking.
Current State:
This is 100% alpha software! PRs are welcome to improve the code.
This version (>= 5.1) requires Jellyfin >= 12.0 and only works on the Web UI or clients supporting Quick Connect. For Jellyfin 10.8 - 10.11, use plugin version 5.0.x.
This README reflects the branch it is currently on! Switch tags to view version-specific documentation!
Tested Providers
Find provider specific documentation in providers.md
- Authelia
- authentik
- Keycloak
- OIDC & SAML
- Pocket ID
- Kanidm
- Google OpenID: Works, but usernames are all numeric
Supported Protocols
Installing
Add the package repo https://raw.githubusercontent.com/k0lin/jellyfin-plugin-sso/manifest-release/manifest.json to your Jellyfin plugin repositories.
Then, install the plugin from the plugin catalog!
See Contributing for instructions on how to build from source.
(Fallback) Legacy package repo (Versions <= 3.3.0)
We have transitioned to a release system that automates distribution, packaging & hosting. This system is new, and if something goes wrong, you can try using the old package repository as a fallback.
Instead add the old package repository: https://repo.ersei.net/jellyfin/manifest.json to your jellyfin plugin repositories.
Installing cutting edge/nightly builds
If you're impatient/brave/feel like helping us test things out, you can install the nightly build of the plugin, which is automatically built against the main branch.
The nightly build can be installed from the main plugin repo, and will always have a version number of 0.0.0.9000.
The nightly build may have new features unavailable in other builds, but be warned, things may change frequently in nightly builds, and things may break, and you could lose data.
Roadmap
- Finalize RBAC access for all user properties
- Automated tests
- Admin page
- Add role/claims support
- Use canonical usernames instead of preferred usernames
- Add user self-service
Limitations
Logging in with an SSO account that has the same username as an existing Jellyfin account will override the permissions for the user. Use caution when overriding the administrator account!
By default, administrator status is managed strictly from SSO admin roles when enableAuthorization is enabled. If an existing administrator does not match an admin role during login, the plugin can revoke the administrator flag. Set preserveAdminPermissions to true to prevent SSO logins from demoting existing administrators. Other managed permissions, such as folder access and Live TV access, are still updated on every login when enableAuthorization is enabled and are persisted through Jellyfin's user policy path.
There is also no logout callback. Logging out of Jellyfin will log you out of Jellyfin only, instead of the SSO provider as well.
Contributing
Dependencies
This project uses Nix flakes to manage development dependencies. Run nix develop to use the same toolchain versions.
Building
This is built with .NET 10.0. Build with dotnet publish . for the debug release in the SSO-Auth directory. Copy over the IdentityModel.OidcClient.dll, the IdentityModel.dll and the SSO-Auth.dll files in the /bin/Debug/net10.0/publish directory to a new folder in your Jellyfin configuration: config/plugins/sso.
VSCode Workflow
An example .vscode configuration may be found at strazto/jellyfin-plugin-sso-vscode.
From the root of this repo, you may clone that to .vscode
# From repo root
git clone https://github.com/strazto/jellyfin-plugin-sso-vscode .vscode
Releasing
This plugin uses JPRM to build the plugin. Refer to the documentation there to install JPRM.
Build the zipped plugin with jprm --verbosity=debug plugin build ..
CI Releases
Anything merged to the main branch will be built and published by our CI system.
Anything tagged/released as a formal Github release will also be built and published by our CI system.
If you wish to use releases from your own fork, refer to
Installing, however, you will need to change the url to the
manifest file, https://raw.githubusercontent.com/k0lin/jellyfin-plugin-sso/manifest-release/manifest.json
so that it refers to your fork.
Credits and Thanks
A huge thank you to tradicije for designing the branding plugin.
Much thanks to the Jellyfin LDAP plugin for offering a base for me to start on my plugin.
I use the AspNet SAML library for the SAML side of things (patched to work with Base64 on non-Windows machines).
I use the Duende IdentityModel OIDC Client library for the OpenID side of things.
Thanks to these projects, without which I would have been pulling my hair out implementing these protocols from scratch.
Something funny about the origins of this plugin
It totally slipped my mind, but I had requested this functionality a few years back. What goes around comes around, I guess.
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…