You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every exception thrown from a public method now implements
OpenIdConnectBundleExceptionInterface, which extends the upstream library
marker OpenIdConnectExceptionInterface. Concrete exceptions extend the SPL
type that best fits the failure category and no longer extend the abstract
ItkOpenIdConnectBundleException (kept as a deprecated alias for 5.x).
A consumer can now catch every OIDC failure from both packages with a
single catch (OpenIdConnectExceptionInterface), or scope to the bundle
with OpenIdConnectBundleExceptionInterface.
- Bump itk-dev/openid-connect to ^5.0 for the matching upstream contract.
- Widen @throws / catch types in the authenticator, manager, controller
and CLI helper onto the marker interface; preserve the $previous chain.
- Add ExceptionHierarchyTest locking marker inheritance, SPL parents and
cross-package catch.
BREAKING: catch (ItkOpenIdConnectBundleException) no longer matches any
concrete thrown by the bundle. Catch OpenIdConnectBundleExceptionInterface.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* @throws NotFoundHttpException Provider key not configured (404)
29
29
* @throws ServiceUnavailableHttpException IdP unreachable, returned a non-200, served malformed JSON, or local cache failed (503)
30
-
* @throws ItkOpenIdConnectException Other provider-init failures (e.g. BadUrlException for a misconfigured metadata_url) — server-side configuration bugs that intentionally bubble as 500
30
+
* @throws OpenIdConnectExceptionInterface Other provider-init failures (e.g. BadUrlException for a misconfigured metadata_url) — server-side configuration bugs that intentionally bubble as 500
31
31
* @throws \InvalidArgumentException Declared by league\AbstractProvider::getAuthorizationUrl for missing scope/state. Unreachable in this flow (state always provided, getDefaultScopes() implemented in upstream OpenIdConfigurationProvider). Bubbles as 500 if it ever fires — programmer error.
0 commit comments