Replies: 13 comments
-
Can you upload the configuration as a .XML ? |
Beta Was this translation helpful? Give feedback.
-
not work with authelia https://www.authelia.com/integration/openid-connect/jellyfin/ |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I don't control Authelia's docs. |
Beta Was this translation helpful? Give feedback.
-
Sorry for the late reply. I can't find the XML file in my volume. So I manually copy and replace the settings from my UI.
Basically, my settings are pretty standard. I noticed lots of ppl have very similar settings. My jellyfin+OIDC does work, but only roles part fails. So I have to temporary remove the part below to work. I would expect the following settings are legit.
Anyway, thanks for the detail logs, I think I am close to the bug. Unfortunately, I am not a C# dev. I can only tell the datastructure comparison fails because the two data types are simply not matched. (Dict/Hashmap/JSON object vs str). Let me know if you need more information. Thanks for your quick reply. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what's going on. It should work as-is. The array that is being returned is not how it's checked, but just a way to debug it easily, so it's not a type issue. I'll try reproducing the issue, but so far I cannot. |
Beta Was this translation helpful? Give feedback.
-
First of all, the authelia docs are supported by the community. If you notice anything wrong, feel free to reach out. The only way I can reproduce this error is by deliberately ignoring the following instruction
for the roles option in the jellyfin-sso plugin UI by comma or space separating them. @grapemix The xml file is located in Best example would be if you enter <Roles>
<string>user,admin</string>
</Roles> instead of <Roles>
<string>user</string>
<string>admin</string>
</Roles> |
Beta Was this translation helpful? Give feedback.
-
@hendrik1120 , thanks for your help. In short, I tried what you suggested, but the bug still exists. Long story:
for science. The UI can't load the field and leave the field empty. So no error. Here is the XML extracted from vol:
Removing Roles field has no err and vice versa. AdminRoles field is neglected by this plugin. |
Beta Was this translation helpful? Give feedback.
-
@grapemix Thank you for taking the time to troubleshoot this again. Unfortunately, I am still unable to reproduce your issue with the information you provided. All I can say is that “it works on my machine” with any amount of groups. (docker, authelia 4.38.15, traefik 3.1.4, jellyfin 10.9.11) To reliably reproduce your issue, I at least need your authelia version + configuration.yml (redacted) and proxy config. I am still confident that the jellyfin plugin is working correctly and that it is likely a configuration issue. Also, the issues you listed were either caused by misconfiguration or are not related. Edit: Please also set authelia logs to debug and provide those as well |
Beta Was this translation helpful? Give feedback.
-
Are you sure authelia's documentation is correct? 8.Roles: jellyfin-users 9.Admin Roles: jellyfin-admins
Are these two the same settings? I have used other methods to achieve my goal, just reporting back on the situation at that time. |
Beta Was this translation helpful? Give feedback.
-
@taiwan-king Without any logs or configurations and only the description of “the page not coming out” I am sorry, but I can't help you. You didn't even specify the URIs you added to make it work for you. |
Beta Was this translation helpful? Give feedback.
-
ghcr.io/authelia/authelia:4.38.8 Tailored authelia cfg:
authelia's log (log lvl=debug)
I think as long as I saw LDAP groups info being returned from authelia (being shown in the SSO's err msg). I would considered the authelia+LDAP setup is correct. (I also have various apps which depends on my LDAP's group for permissions). I hope my info helps. |
Beta Was this translation helpful? Give feedback.
-
@grapemix No idea, what's wrong with your setup. _logger.LogWarning(
"OpenID user {Username} has one or more incorrect role claims: {@Claims}. Expected any one of: {@ExpectedClaims}",
StateManager[state].Username,
result.User.Claims.Select(o => new { o.Type, o.Value }),
config.Roles); I am confident someone who is running jelyfin in k8s can figure this out though :) |
Beta Was this translation helpful? Give feedback.
-
I've posted something in this discussion #205, but although I'm using zitadel instead of authelia, seems I'm experiencing a similar issue. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
jellyfin-plugin-sso is unable to parse/handle from authelia openId result because of different format (JSON key pair vs str array). I just use very basic setup. See below.
To Reproduce
Use SSO btn to login after setup.
Expected behavior
Error from console:
Based on OpenID's result, we would like to find something like '{"Type": "groups", "Value": "user"}' instead of just "user". I've tried to put '{"Type": "groups", "Value": "user"}' in the Roles field, but I have no luck. The Role Claim seems not support this JSON key pair case since the JSON is not like {"groups": ["user", "admin"]}.
I've seen a few post's cfg is like mine, but they seems have no problem...
#23
#88
Configuration
Authelia cfg:
Plugin cfg:
Versions (please complete the following information):
Additional context
Add any other context about the problem here. Was the plugin built from source?
Beta Was this translation helpful? Give feedback.
All reactions