From 178bfe1d4477c43c5ff3ad68e0b06c493fd22b20 Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 13 Mar 2023 13:44:29 +0100 Subject: [PATCH] providers/scim: handle ServiceProviderConfig 404 (#4915) Signed-off-by: Jens Langhammer --- authentik/providers/scim/clients/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/authentik/providers/scim/clients/base.py b/authentik/providers/scim/clients/base.py index f6960b947..127d3dc40 100644 --- a/authentik/providers/scim/clients/base.py +++ b/authentik/providers/scim/clients/base.py @@ -88,8 +88,8 @@ class SCIMClient(Generic[T, SchemaType]): return ServiceProviderConfiguration.parse_obj( self._request("GET", "/ServiceProviderConfig") ) - except ValidationError as exc: - self.logger.warning("ServiceProviderConfig invalid", exc=exc) + except (ValidationError, SCIMRequestException) as exc: + self.logger.warning("failed to get ServiceProviderConfig", exc=exc) return default_config def write(self, obj: T):