Version Affected: 20.06 HF 16 and later
Overview
This article explains how to send a user's GroupList as an array in an OpenID Connect (OIDC) response, instead of the default comma-separated list. Some Service Providers require the GroupList as an array rather than a comma-separated string.
Send GroupList as an Array
- In the Admin Console, go to Advanced Settings, then Admin Realm.
- Select the OIDC realm that needs the setting changed, then go to its Post Authentication tab.
- Scroll down and add a custom claim. Set the claim Name, then in the value drop-down, select GroupList As Array.
- Click Save to apply the change.
Special Considerations
Prior to 20.06 HF 16, the GroupList was always sent as a comma-separated list, with no option to send it as an array. This option was added in:
- 20.06 HF 16
- 21.04 HF 11
- 22.02 HF 5
- 22.12 and later, where it is available in the base code
Because of a known bug (EE-4103), a GroupList As Array claim is not always returned as an array. The UserInfo endpoint (OidcUserInfo.aspx) returns only the user's first group, as a single string. In the ID token and the access token, the claim is a single string when the user is in only one group. Full Group DN List As Array is affected the same way. As a workaround, have the Service Provider read the claim from the ID token and accept it as either a string or an array. For more information about this bug, see Bug: OIDC UserInfo Endpoint Returns Only the First Group for GroupList As Array Claims and Bug: OIDC Tokens Send a GroupList As Array Claim as a String When the User Has Only One Group.
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.