Version Affected: 20.06 HF16, 21.04 HF11, 22.02 HF5, 22.12 and later
Bug Number: EE-4103
Bug Status: Open - Workaround Available
Fixed in Version(s): Not yet fixed
Overview
On an OpenID Connect (OIDC) realm, a custom claim set to GroupList As Array on the Post Authentication tab returns all of a user's groups in the ID token, but the UserInfo endpoint (OidcUserInfo.aspx) returns only the user's first group, as a plain string. Full Group DN List As Array behaves the same way.
A Service Provider that reads groups from the UserInfo endpoint therefore receives only one group, so group-based access or role mapping fails or grants the wrong roles. A client that expects an array can fail to read the groups at all.
Cause
This is a known defect (EE-4103) in how the UserInfo endpoint builds its response. When a claim has several values, the endpoint keeps only the first one and returns it as a string. For the same user and access token, the ID token contains:
"groups": ["ADMs", "Group2", "Helpdesk", "VPN-Users"]The UserInfo response contains:
"groups": "ADMs"The amr claim is affected the same way. It is an array in the ID token, ["password"], but a string in the UserInfo response, "password".
Resolution / Workaround
There is no fix yet. Until one is available, configure the Service Provider to read the groups claim from the ID token instead of from the UserInfo endpoint. The ID token contains the full array.
SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.
Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.
Comments
0 comments
Please sign in to leave a comment.