Skip to content

Update openid-connect-bundle to 5.0 and Symfony to 8.1 - #85

Merged
turegjorup merged 2 commits into
developfrom
feature/update-oidc-5.0-symfony-8.1
Jun 2, 2026
Merged

Update openid-connect-bundle to 5.0 and Symfony to 8.1#85
turegjorup merged 2 commits into
developfrom
feature/update-oidc-5.0-symfony-8.1

Conversation

@turegjorup

Copy link
Copy Markdown
Contributor

What

Updates itk-dev/openid-connect-bundle to 5.0 and Symfony to 8.1.

  • Bump itk-dev/openid-connect-bundle to ^5.0 (pulls itk-dev/openid-connect 5.0.0).
  • Migrate AzureOIDCAuthenticator to the new OIDC exception marker interface.
  • Bump Symfony to 8.1: Flex pin extra.symfony.require 8.0.* → 8.1.* and symfony/asset-mapper ~8.0.0 → ~8.1.0 (every other symfony/* was already ^8.0).
  • Regenerate config/reference.php for Symfony 8.1 (auto-generated config-reference helper).

Why / BC

openid-connect-bundle 5.0 reworks the exception hierarchy onto marker interfaces. Upstream itk-dev/openid-connect 5.0 makes ItkOpenIdConnectException a deprecated abstract that concrete exceptions no longer extend — so the previous catch (ItkOpenIdConnectException|InvalidProviderException $exception) would have silently stopped catching auth failures.

-} catch (ItkOpenIdConnectException|InvalidProviderException $exception) {
+} catch (OpenIdConnectExceptionInterface $exception) {

The upstream marker OpenIdConnectExceptionInterface covers failures from both the library and the bundle (the bundle's OpenIdConnectBundleExceptionInterface extends it), mirroring how the bundle migrated its own authenticator.

Verification (local, all green on Symfony 8.1 + bundle 5.0.0)

  • composer validate --strict ✅ · composer audit ✅ no advisories
  • PHPStan (level 6) ✅ no errors
  • PHP-CS-Fixer ✅ 0/193
  • Doctrine mapping ✅ correct
  • PHPUnit ✅ 44 tests, 84 assertions
  • composer outdated --direct ✅ all up to date

Deploy note

The post-update cache:clear can fail on a stale 8.0 compiled cache (VarExporter\Internal\Hydrator not found, class moved in 8.1). Ensure var/cache/* is clean on deploy.

🤖 Generated with Claude Code

- Bump itk-dev/openid-connect-bundle to ^5.0 (pulls itk-dev/openid-connect 5.0)
- Migrate AzureOIDCAuthenticator to the new OIDC exception marker interface
  OpenIdConnectExceptionInterface (5.0 BC: concrete exceptions no longer
  extend ItkOpenIdConnectException)
- Update Symfony to 8.1 (Flex pin 8.1.*, asset-mapper ~8.1.0)
- Regenerate config/reference.php for Symfony 8.1

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown

API Specification - Non-breaking changes

API Changelog 1.0.0 vs. 1.0.0

No changes detected

@turegjorup turegjorup self-assigned this Jun 2, 2026
- composer-audit: pass --locked so the audit runs against the committed
  lock file (CI container has no installed vendor/)
- Regenerate public/api-spec-v1.yaml for Symfony YAML 8.1 dumper formatting
- Move the 1.11.1 hotfix entry (#84) into a ## [1.11.1] section so the
  [1.11.1] link reference is used (fixes markdownlint MD053)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@turegjorup
turegjorup merged commit 57ec841 into develop Jun 2, 2026
15 checks passed
@turegjorup
turegjorup deleted the feature/update-oidc-5.0-symfony-8.1 branch June 2, 2026 11:34
turegjorup added a commit that referenced this pull request Jun 2, 2026
Brings openid-connect-bundle 5.0 and Symfony 8.1 upgrade (#85).

# Conflicts:
#	CHANGELOG.md
turegjorup added a commit that referenced this pull request Jun 2, 2026
Port of #85 onto main (regenerated lock/api-spec on main's baseline, which
does not include the unreleased asset-mapper migration).

- Bump itk-dev/openid-connect-bundle to ^5.0 (pulls itk-dev/openid-connect 5.0)
- Migrate AzureOIDCAuthenticator to OpenIdConnectExceptionInterface (5.0 BC)
- Update Symfony to 8.1

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant