diff --git a/authentik/core/api/utils.py b/authentik/core/api/utils.py index 380208e08..f768bb812 100644 --- a/authentik/core/api/utils.py +++ b/authentik/core/api/utils.py @@ -14,7 +14,7 @@ def is_dict(value: Any): """Ensure a value is a dictionary, useful for JSONFields""" if isinstance(value, dict): return - raise ValidationError("Value must be a dictionary.") + raise ValidationError("Value must be a dictionary, and not have any duplicate keys.") class PassiveSerializer(Serializer): diff --git a/authentik/outposts/api/outposts.py b/authentik/outposts/api/outposts.py index 4cf47d907..7e6972171 100644 --- a/authentik/outposts/api/outposts.py +++ b/authentik/outposts/api/outposts.py @@ -51,7 +51,7 @@ class OutpostSerializer(ModelSerializer): raise ValidationError( ( f"Outpost type {self.initial_data['type']} can't be used with " - f"{type(provider)} providers." + f"{provider.__class__.__name} providers." ) ) return providers