-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSO Linking creates new account instead of linking with existing local account #209
Comments
I can't reproduce this on my end, can you upload a screencast of the steps you are taking? |
Screencast: https://imgur.com/a/AAbPHfL |
Bump in hopes the screen recording helps. Seems likely I am doing something wrong and would love to get this working! |
Sorry, but I've been busy with classes. I'll take a look this week. |
+1 exactly the same issue on my end (as seen in the video) |
@strazto any thoughts? |
Same issue, here is another video: |
I'm noticing that there is never an XHR to the If in a linking flow, any errors to link, either the current early returns or the XHR onerror function being called, should cause an error to be shown, rather than continuing forward with the call to |
@Dleewee so my guess here, the plugin currently uses the username of the sso. Not the fact it wants to link to an account. So yes, it works. But it does it by returning to the endpoint used for logging in instead of a seperate endpoint for linking. |
I see, so it requires that the SSO username exactly match the existing Jellyfin user name in order to create a linkage, otherwise it creates a new user. I will suggest this is an opportunity for enhancement, by allowing me to link any existing user with any SSO ID that I am able to authenticate with. For comparison, you may look at Bookstack as well as NextCloud Social. Both of these projects allow linking a SSO account with an existing local account and have no requirement that the usernames be the same. Thanks! |
+1 for the enhancement, I also had no idea that the SSO username had to match the Jellyfin username exactly. I just assumed it will link the Jellyfin account that's currently logged in, to the SSO account that gets authenticated during the linking process. |
I think it's supposed to, but due to the bug I mentioned in #209 (comment) it no longer does so. |
Same issue here. Here is what I got in the logs:
|
I think you are passing the username claim in as an email address instead of the exact value that Jellyfin wants? |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The existing local account should be linked to an SSO provider, allowing the user to use either their local credentials or the SSO login process.
Screenshots
"testuser" is logged in with local account
Navigate to linking page and select plus button
"test.user" account is logged in and is not connected to original "testuser" - instead a whole new account has been created
Configuration
All settings below "OID Secret" have been left blank/default. I only completed the top 4 lines and checked the box for "enabled."
Versions (please complete the following information):
Additional context
I am able to complete successful SSO login, however I cannot seem to tie/link SSO into an existing "local account" i.e. an account created directly in Jellyfin. I would like to link accounts so that previous watched status can be retained.
The text was updated successfully, but these errors were encountered: