Skip to content

feat: Add env-based OIDC logout URI mapping#130

Merged
bromiesTM merged 2 commits into
ionos-dev-v30from
kh/dev/set-backchannel-logout-params
Jul 2, 2026
Merged

feat: Add env-based OIDC logout URI mapping#130
bromiesTM merged 2 commits into
ionos-dev-v30from
kh/dev/set-backchannel-logout-params

Conversation

@bromiesTM

Copy link
Copy Markdown
Contributor

Compute logout endpoints from INSTANCE_TYPE and MARKET, and merge them into user_oidc config. Log a warning when no mapping exists.

Compute logout endpoints from INSTANCE_TYPE and MARKET, and merge
them into user_oidc config. Log a warning when no mapping exists.

Signed-off-by: Kai Henseler <kai.henseler@strato.de>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR makes the OIDC logout endpoints configurable based on runtime environment (INSTANCE_TYPE and MARKET) by computing a logout-URI mapping at config-load time and merging it into the user_oidc config, while emitting a warning when no mapping exists.

Changes:

  • Compute endsessionendpointuri / postlogouturi from INSTANCE_TYPE + MARKET.
  • Merge the computed logout URI pair into the existing user_oidc configuration.
  • Log a warning when there is no mapping for the detected environment.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread configs/oidc.config.php Outdated
Comment on lines +55 to +61
if ($uris === []) {
error_log(sprintf(
'oidc.config.php: no logout URIs for INSTANCE_TYPE=%s MARKET=%s',
$instanceType,
$market,
));
}
Comment thread configs/oidc.config.php

@lara-fernandezcueto lara-fernandezcueto left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

It looks good except for the empty check

Comment thread configs/oidc.config.php Outdated
Signed-off-by: Kai Henseler <kai.henseler@strato.de>

@lara-fernandezcueto lara-fernandezcueto left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@bromiesTM
bromiesTM merged commit cc753b8 into ionos-dev-v30 Jul 2, 2026
11 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.

3 participants