Skip to content

Feature/issue 1864 optional domain hint#1984

Merged
kayjoosten merged 6 commits intomainfrom
feature/issue-1864-optional-domain-hint
Apr 23, 2026
Merged

Feature/issue 1864 optional domain hint#1984
kayjoosten merged 6 commits intomainfrom
feature/issue-1864-optional-domain-hint

Conversation

@kayjoosten
Copy link
Copy Markdown
Contributor

No description provided.

…sts (#1864)

When coin:azure_domain_hint is set on an IdP, EngineBlock appends a
whr=<domain> query parameter to the HTTP-Redirect URL it sends as the
AuthnRequest to that IdP. This allows Microsoft Azure / EntraID to skip
the account picker for users whose realm is already known.

- Add azureDomainHint field + getter to Coins (IdP coins)
- Add azureDomainHint constructor param to IdentityProvider entity
- Map metadata:coin:azure_domain_hint in PushMetadataAssembler
- Append whr= in Bindings::send() HTTP-Redirect branch when IdP has the coin
- Integration test: azure_domain_hint coin round-trips through PushMetadataAssembler
- Legacy test: Bindings appends / omits whr= based on coin presence
- Behat scenario: AzureDomainHint.feature covers the full SSO flow
Added IDP "<name>" prefers HTTP Redirect binding step and used it in the
negative scenario so the URL assertion fires at the actual IdP redirect URL
rather than at an intermediate EngineBlock page.
Copy link
Copy Markdown
Contributor

@johanib johanib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One minor edgecase we might improve

Comment thread library/EngineBlock/Corto/Module/Bindings.php
Comment thread library/EngineBlock/Corto/Module/Bindings.php Outdated
@kayjoosten kayjoosten force-pushed the feature/issue-1864-optional-domain-hint branch from 3f83638 to c296f03 Compare April 23, 2026 11:43
@kayjoosten kayjoosten requested a review from johanib April 23, 2026 11:44
@kayjoosten kayjoosten merged commit 4e1fbba into main Apr 23, 2026
2 checks passed
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.

Add optional domain hint to help skip the Microsoft Azure / EntraID account picker

2 participants