From 709b5c1a264a4fa00eb9f8c11ed7347cfe89b154 Mon Sep 17 00:00:00 2001 From: Daniel Mursa Date: Wed, 11 Dec 2024 15:04:47 +0100 Subject: [PATCH] [#468] Change namespaces for TokenAuthConfiguration --- docker/setup_configuration/data.yaml | 5 +++-- src/objects/setup_configuration/steps/token_auth.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/setup_configuration/data.yaml b/docker/setup_configuration/data.yaml index 7b3e1ee4..4a4a4c43 100644 --- a/docker/setup_configuration/data.yaml +++ b/docker/setup_configuration/data.yaml @@ -1,5 +1,5 @@ -objects_tokens_config_enable: true -objects_tokens: +token_tokenauth_config_enable: true +token_tokenauth: items: - identifier: token-1 token: 18b2b74ef994314b84021d47b9422e82b685d82f @@ -25,3 +25,4 @@ objecttypes: - uuid: b427ef84-189d-43aa-9efd-7bb2c459e281 name: Object Type 1 service_identifier: objecttypen-test + diff --git a/src/objects/setup_configuration/steps/token_auth.py b/src/objects/setup_configuration/steps/token_auth.py index 17dd9e4a..817acf3b 100644 --- a/src/objects/setup_configuration/steps/token_auth.py +++ b/src/objects/setup_configuration/steps/token_auth.py @@ -21,8 +21,8 @@ class TokenAuthConfigurationStep( Configure tokens for other applications to access Objects API """ - namespace = "objects_tokens" - enable_setting = "objects_tokens_config_enable" + namespace = "token_tokenauth" + enable_setting = "token_tokenauth_config_enable" verbose_name = "Configuration to set up authentication tokens for objects" config_model = TokenAuthGroupConfigurationModel