are_multiple_claim_values_allowed controls all claims in a scope

Open
#360 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Active
Tech stack
php

Research direction

Start by tracing how the are_multiple_claim_values_allowed setting is applied to claims within a scope, focusing on eduperson_affiliation and eduperson_principal_name. Compare the current behavior with the proposed claim-level and scope-level alternatives. Done means the project has an agreed, predictable rule for single-valued and multi-valued claims, covered by relevant tests.

Written by the indexing model from the issue text.

Description

prepared

If I set are_multiple_claim_values_allowed to true in a custom scope eduperson, which I need for eduperson_affiliation, eduperson_principal_name also becomes a list even if it contains only one value (and is defined as single-valued).
Maybe the are_multiple_claim_values_allowed setting should live at the claim definition level instead of scope?

Or: Always send single valued claims as string and expand to list if are_multiple_claim_values_allowed is set to true at the scope level, this would be the least intrusive refactor. But the downside is that this behaviour would be unpredictable for the RP.

Dominant language
PHP
Stars
51
Forks
27
Avg merge
12m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from simplesamlphp/simplesamlphp-module-oidc

All issues in simplesamlphp/simplesamlphp-module-oidc

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.