Skip to content

Add support for preferred IdPs in WAYF display#1985

Merged
johanib merged 6 commits intomainfrom
feature/1970-preferred-idps-wayf
May 5, 2026
Merged

Add support for preferred IdPs in WAYF display#1985
johanib merged 6 commits intomainfrom
feature/1970-preferred-idps-wayf

Conversation

@johanib
Copy link
Copy Markdown
Contributor

@johanib johanib commented Apr 22, 2026

Prior to this change, there was no way to configure priority IdPs.

This change adds a wayf.preferred_idp_entity_ids parameter to configure IdPs that should show prominent in the wayf.
IdPs in this list are shown on top of the wayf, outside of the regular list.

Also make the twig templates more explicit by not enabling the global variable scope.

Resolves #1970

@johanib johanib force-pushed the feature/1970-preferred-idps-wayf branch 3 times, most recently from 62b309b to a8115aa Compare April 22, 2026 08:54
@johanib johanib requested a review from kayjoosten April 22, 2026 08:55
Comment thread src/OpenConext/EngineBlockBundle/Service/WayfRenderer.php Outdated
Comment thread src/OpenConext/EngineBlockBundle/Service/WayfRenderer.php Outdated
johanib added 3 commits April 28, 2026 09:25
Prior to this change, there was no way to configure priority IdPs.

This change adds a `wayf.preferred_idp_entity_ids` parameter to configure IdPs that should show prominent in the wayf.
IdPs in this list are shown on top of the wayf, outside of the regular list.

Resolves #1970
…vice

Prior to this change, much of the wayf rendering happened in Corto.

This change moves that logic to the Symfony workspaces.

Benefits:
- Business logic is now in a testable Symfony service with proper DI
- Production (SingleSignOn) and the functional test (WayfController)
  share the exact same rendering path, eliminating logic duplication
- DiContainerRuntime bridge is thinner
Prior to this change, tracing the IdP logic of the Wayf was difficult because it was just arrays.

This change introduces the WayfIdp so its easy to keep track of where the object is used.
@johanib johanib force-pushed the feature/1970-preferred-idps-wayf branch from a8115aa to daef5e4 Compare April 28, 2026 08:27
johanib added 3 commits April 28, 2026 12:07
Prior to this change, bugs could occur because the array returned rom the IdP Splitter exposed all data.

This change adds a value object in the return, so logic can be better encapsulated.
@johanib johanib requested a review from kayjoosten April 28, 2026 13:37
@johanib johanib merged commit 16f8e36 into main May 5, 2026
2 checks passed
@johanib johanib deleted the feature/1970-preferred-idps-wayf branch May 5, 2026 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show preferred IdPs on a special position in the WAYF

2 participants