Skip to content

Commit

Permalink
[#293] update token configuration file namespaces (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyBA authored Dec 13, 2024
1 parent 3c7e502 commit 4715811
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 22 deletions.
4 changes: 2 additions & 2 deletions docker/setup_configuration/data.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: ba9d233e95e04c4a8a661a27daffe7c9bd019067
Expand Down
4 changes: 2 additions & 2 deletions docs/installation/setup_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Create a (single) YAML configuration file with your settings:

.. code-block:: yaml
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: ba9d233e95e04c4a8a661a27daffe7c9bd019067
Expand Down
3 changes: 1 addition & 2 deletions src/openklant/setup_configuration/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django_setup_configuration.models import ConfigurationModel
from pydantic import Field

from openklant.components.token.models import TokenAuth

Expand All @@ -20,4 +19,4 @@ class Meta:


class TokenAuthGroupConfigurationModel(ConfigurationModel):
items: list[TokenAuthConfigurationModel] = Field()
items: list[TokenAuthConfigurationModel]
4 changes: 2 additions & 2 deletions src/openklant/setup_configuration/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ class TokenAuthConfigurationStep(
Configure configuration groups for the Objects API backend
"""

namespace = "openklant_tokens"
enable_setting = "openklant_tokens_config_enable"
namespace = "tokenauth"
enable_setting = "tokenauth_config_enable"

verbose_name = "Configuration to set up authentication tokens for Open Klant"
config_model = TokenAuthGroupConfigurationModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: 18b2b74ef994314b84021d47b9422e82b685d82f
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: 7b2b212d9f16d171a70a1d927cdcfbd5ca7a4799
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: 18b2b74ef994314b84021d47b9422e82b685d82f
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: 7b2b212d9f16d171a70a1d927cdcfbd5ca7a4799
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: ba9d233e95e04c4a8a661a27daffe7c9bd019067
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar
token: ba9d233e95e04c4a8a661a27daffe7c9bd019067
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
openklant_tokens_config_enable: true
openklant_tokens:
tokenauth_config_enable: true
tokenauth:
items:
- identifier: token-1
token: foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar foobar
Expand Down

0 comments on commit 4715811

Please sign in to comment.