Respond with list of attribute/value pairs instead of list of values #22

Open
opened 2026-07-09 22:15:38 +02:00 by stb · 1 comment
Owner

When I have the mailing list address attributes as individual attributes in a single group (instead of having a group each with one attribute), I want to distinguish between the attributes.

So instead of:

[
  'stb+chaos@lassitu.de',
  'stb+intern@lassitu.de',
  'foo@example.com',
  'bar@example.net'
 |

I want:

{
  'mailinglist-chaos': [
    'stb+chaos@lassitu.de',
    'foo@example.com',
  ],
  'mailinglist-intern': [
    'stb+intern@lassitu.de',
    'bar@example.net'
  ]
}
When I have the mailing list address attributes as individual attributes in a single group (instead of having a group each with one attribute), I want to distinguish between the attributes. So instead of: ```json [ 'stb+chaos@lassitu.de', 'stb+intern@lassitu.de', 'foo@example.com', 'bar@example.net' | ``` I want: ```json { 'mailinglist-chaos': [ 'stb+chaos@lassitu.de', 'foo@example.com', ], 'mailinglist-intern': [ 'stb+intern@lassitu.de', 'bar@example.net' ] } ```
Member

In the beginning it was only planned to use this provider for ssh keys, so we wanted all keys (even if there are multiple fields in the attribute group to add multiple keys) in one big list.
Now that we have generalised this provider, we can implement the option of grouping values by each field.

In the beginning it was only planned to use this provider for ssh keys, so we wanted all keys (even if there are multiple fields in the attribute group to add multiple keys) in one big list. Now that we have generalised this provider, we can implement the option of grouping values by each field.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
CCCHH/keycloak-attribute-endpoints-provider#22
No description provided.