providers/scim: handle ServiceProviderConfig 404 (#4915)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
parent
afb7f8be3e
commit
178bfe1d44
|
@ -88,8 +88,8 @@ class SCIMClient(Generic[T, SchemaType]):
|
||||||
return ServiceProviderConfiguration.parse_obj(
|
return ServiceProviderConfiguration.parse_obj(
|
||||||
self._request("GET", "/ServiceProviderConfig")
|
self._request("GET", "/ServiceProviderConfig")
|
||||||
)
|
)
|
||||||
except ValidationError as exc:
|
except (ValidationError, SCIMRequestException) as exc:
|
||||||
self.logger.warning("ServiceProviderConfig invalid", exc=exc)
|
self.logger.warning("failed to get ServiceProviderConfig", exc=exc)
|
||||||
return default_config
|
return default_config
|
||||||
|
|
||||||
def write(self, obj: T):
|
def write(self, obj: T):
|
||||||
|
|
Reference in New Issue