From 162c16f88e3d52792b5532452d5cac445814061b Mon Sep 17 00:00:00 2001 From: Daniel Mursa Date: Mon, 16 Dec 2024 13:47:11 +0100 Subject: [PATCH] [#485] Fix yaml file --- docker/setup_configuration/data.yaml | 33 +++++++++---------- .../setup_configuration/models/token_auth.py | 1 - 2 files changed, 16 insertions(+), 18 deletions(-) diff --git a/docker/setup_configuration/data.yaml b/docker/setup_configuration/data.yaml index 2e20b590..5895485c 100644 --- a/docker/setup_configuration/data.yaml +++ b/docker/setup_configuration/data.yaml @@ -1,20 +1,3 @@ -token_tokenauth_config_enable: true -token_tokenauth: - items: - - identifier: token-1 - token: 18b2b74ef994314b84021d47b9422e82b685d82f - contact_person: Person 1 - email: person-1@example.com - organization: Organization 1 - application: Application 1 - administration: Administration 1 - -sites_config_enable: true -sites_config: - items: - - domain: example.com - name: Example site - zgw_consumers_config_enable: true zgw_consumers: services: @@ -36,6 +19,7 @@ zgw_consumers: header_key: Authorization header_value: Token ba9d233e95e04c4a8a661a27daffe7c9bd019067 + notifications_config_enable: true notifications_config: notifications_api_service_identifier: notifications-api @@ -43,6 +27,7 @@ notifications_config: notification_delivery_retry_backoff: 2 notification_delivery_retry_backoff_max: 3 + objecttypes_config_enable: true objecttypes: items: @@ -50,6 +35,20 @@ objecttypes: name: Object Type 1 service_identifier: objecttypes-api + +token_tokenauth_config_enable: true +token_tokenauth: + items: + - identifier: token-1 + token: 18b2b74ef994314b84021d47b9422e82b685d82f + contact_person: Person 1 + email: person-1@example.com + organization: Organization 1 + application: Application 1 + administration: Administration 1 + is_superuser: true + + oidc_db_config_enable: true oidc_db_config_admin_auth: items: diff --git a/src/objects/setup_configuration/models/token_auth.py b/src/objects/setup_configuration/models/token_auth.py index f85d1730..5adf5746 100644 --- a/src/objects/setup_configuration/models/token_auth.py +++ b/src/objects/setup_configuration/models/token_auth.py @@ -1,5 +1,4 @@ from django_setup_configuration.models import ConfigurationModel -from pydantic import Field from objects.token.models import TokenAuth