From 43294368814850b543f76b56f763cd3206bfd7db Mon Sep 17 00:00:00 2001 From: anthony sottile Date: Wed, 3 Jul 2024 16:50:18 -0400 Subject: [PATCH] ref: fix more cases where HC data must be dict JSONField requires exactly dict (cannot serialize arbitrary Mapping) --- src/sentry/auth/services/auth/impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sentry/auth/services/auth/impl.py b/src/sentry/auth/services/auth/impl.py index 1efa0685085d6a..2e2a342700a405 100644 --- a/src/sentry/auth/services/auth/impl.py +++ b/src/sentry/auth/services/auth/impl.py @@ -44,7 +44,7 @@ def enable_partner_sso( *, organization_id: int, provider_key: str, - provider_config: Mapping[str, Any], + provider_config: dict[str, Any], user_id: int | None = None, sender: str | None = None, ) -> None: @@ -179,7 +179,7 @@ def disable_provider(self, *, provider_id: int) -> None: auth_provider.delete() def update_provider_config( - self, organization_id: int, auth_provider_id: int, config: Mapping[str, Any] + self, organization_id: int, auth_provider_id: int, config: dict[str, Any] ) -> None: current_provider = AuthProvider.objects.filter( organization_id=organization_id, id=auth_provider_id