Skip to content

feat(stepup): add service display name to Stepup callout AuthnRequest#2034

Open
kayjoosten wants to merge 1 commit into
mainfrom
feature/issue-2011-stepup-display-name
Open

feat(stepup): add service display name to Stepup callout AuthnRequest#2034
kayjoosten wants to merge 1 commit into
mainfrom
feature/issue-2011-stepup-display-name

Conversation

@kayjoosten

Copy link
Copy Markdown
Contributor

Summary

  • Adds mdui:UIInfo/mdui:DisplayName to <samlp:Extensions> of the Stepup Gateway SFO callout AuthnRequest, so Stepup can surface the correct service name in its 2FA UI instead of the generic proxy name
  • Controlled by feature flag eb.stepup.send_service_name (disabled by default)
  • Uses the user's current engine locale, falling back to English; prefers mdui DisplayName over flat name* fields
  • Closes Add display name to the Extenstions of SAML request #2011

Technical notes

  • New StepupServiceNameExtension class in src/OpenConext/EngineBlock/Stepup/ follows the same pattern as StepupGsspUserAttributeExtension
  • xml:lang attribute set via setAttributeNS (XML namespace) so XPath and SAML consumers resolve it correctly
  • Locale resolved via existing LocaleProvider::getLocale() available through DiContainer

Test plan

  • 7/7 unit tests pass (StepupServiceNameExtensionTest)
  • 27/27 Behat scenarios pass in Stepup.feature (includes 2 new scenarios: feature enabled / disabled)
  • phpcs and docheader clean on new files
  • Feature flag disabled by default — existing Stepup flow unchanged when flag is off

@kayjoosten kayjoosten force-pushed the feature/issue-2011-stepup-display-name branch from 4c29f14 to b0887cb Compare June 26, 2026 08:37
Why is this change needed?
Prior to this change, the Stepup Gateway SFO callout AuthnRequest
contained no service name, so Stepup showed a generic proxy name in
its 2FA UI instead of the actual application the user was logging in to.

How does it address the issue?
This change adds an mdui:UIInfo/mdui:DisplayName element to the
samlp:Extensions of the callout AuthnRequest, using the user's current
engine locale with an English fallback. The feature is controlled by
the eb.stepup.send_service_name flag (disabled by default).

Refs #2011
@kayjoosten kayjoosten force-pushed the feature/issue-2011-stepup-display-name branch from b0887cb to 168d03d Compare June 26, 2026 08:39
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 display name to the Extenstions of SAML request

1 participant