Skip to content

Commit 6dbfc2f

Browse files
turegjorupclaude
andcommitted
chore(deps): upgrade itk-dev/openid-connect-bundle to 5.0
Bumps itk-dev/openid-connect-bundle (and upstream itk-dev/openid-connect) from 4.x to 5.0. The 5.0 release reworks the exception hierarchy around a marker interface: concrete exceptions no longer extend the now-deprecated ItkOpenIdConnectException, so existing `catch (ItkOpenIdConnectException)` blocks would silently match nothing. Migrate the three OIDC catch sites in AuthOidcController and the one in AzureOidcAuthenticator to catch OpenIdConnectExceptionInterface, the new marker that both bundle- and library-thrown exceptions implement. Behaviour (404 unknown provider, 500 OIDC failure, null end-session URL, wrapped auth failure) is unchanged. Add regression tests: - AuthOidcControllerTest: the three getUrls() exception-mapping branches (null end-session URL, 404, 500) that the upgrade put at risk. - AzureOidcAuthenticatorTest: the previously untested authenticate() logic — internal/external user provisioning, group-claim to tenant-role mapping, multi-role accumulation, tenant de-provisioning, and the unknown-suffix / missing-claim / unsupported-provider rejections. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 89ba611 commit 6dbfc2f

7 files changed

Lines changed: 550 additions & 64 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
## [Unreleased]
66

7+
- Upgraded `itk-dev/openid-connect-bundle` to 5.0 (and `itk-dev/openid-connect` to 5.0). Migrated the
8+
OIDC exception catches in `AuthOidcController` and `AzureOidcAuthenticator` to the new
9+
`OpenIdConnectExceptionInterface` marker, since concrete exceptions no longer extend the deprecated
10+
`ItkOpenIdConnectException`. Added regression tests covering the exception-mapping branches and the
11+
authenticator's claim-to-tenant-role provisioning and de-provisioning logic.
712
- Removed the deprecated feed types `SparkleIOFeedType`, `EventDatabaseApiFeedType` and `KobaFeedType`.
813
Made the unknown-feed-type handling consistent: **reads degrade, writes are rejected.** Feed sources
914
(and feeds) that reference a removed type keep loading — item and collection reads return them with no

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"doctrine/doctrine-migrations-bundle": "^3.1",
2222
"doctrine/orm": "^2.9",
2323
"gesdinet/jwt-refresh-token-bundle": "^1.0",
24-
"itk-dev/openid-connect-bundle": "^4.1",
24+
"itk-dev/openid-connect-bundle": "^5.0",
2525
"justinrainbow/json-schema": "^5.2",
2626
"kubawerlos/php-cs-fixer-custom-fixers": "^3.11",
2727
"lexik/jwt-authentication-bundle": "^2.14",

composer.lock

Lines changed: 67 additions & 58 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)