commonground-api-common 2.5.0__py3-none-any.whl → 2.5.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: commonground-api-common
3
- Version: 2.5.0
3
+ Version: 2.5.2
4
4
  Summary: Commonground API tooling
5
5
  Home-page: https://github.com/maykinmedia/commonground-api-common
6
6
  Author: Maykin Media, VNG-Realisatie
@@ -1,5 +1,5 @@
1
- commonground_api_common-2.5.0.data/scripts/generate_schema,sha256=OpKgzlFc_uzA3TVW_vHSYXAD_feLaCdTEnkWjIcxVzA,280
2
- vng_api_common/__init__.py,sha256=fMbNgIJqxiZEaSBLadLBt4rZpCHqarzb4Okt-aWsp2E,22
1
+ commonground_api_common-2.5.2.data/scripts/generate_schema,sha256=OpKgzlFc_uzA3TVW_vHSYXAD_feLaCdTEnkWjIcxVzA,280
2
+ vng_api_common/__init__.py,sha256=V-NiKyTdzd5WY2b4iSwaM1JcbOEyZ0IH2WQKBnjN2DI,22
3
3
  vng_api_common/admin.py,sha256=iFtUPGf-ha0I-bXgq8QIFrP23Kzk_H3FlgAjt0U-ip0,259
4
4
  vng_api_common/apps.py,sha256=QQiJXRmjX9Q91oh0P9fvVnHe3NSYd1cEcUUBw0HLBCA,3690
5
5
  vng_api_common/checks.py,sha256=tOyfV7MMLGh4anrd_W30LvJCxiyQ4sFs1mGd9mtrEc0,1175
@@ -76,7 +76,7 @@ vng_api_common/audittrails/migrations/_operations.py,sha256=UOMv0zAK8CIQ73cSu6ww
76
76
  vng_api_common/authorizations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
77
77
  vng_api_common/authorizations/admin.py,sha256=Tk0yYKbb005E0XZaYYWbucMf_K5M8Hhz62wSBDi8rhM,813
78
78
  vng_api_common/authorizations/middleware.py,sha256=KJ3znCXPRMOVqSur62SmBjvC6RcKxtcWq1rzaHdYR98,8416
79
- vng_api_common/authorizations/models.py,sha256=0bcZwRc0ntIlPzUM7I8R5yhQRrnXvAZ_l9FpTnpbnxk,5207
79
+ vng_api_common/authorizations/models.py,sha256=slIYxSktxCxSg03Nfb2mhsQse17b93KWE-rdPdMv8Ik,5199
80
80
  vng_api_common/authorizations/serializers.py,sha256=3HeKWEqhI3UWwI8SttC4rEID-Epbk7SWsC-bEjolbaw,5151
81
81
  vng_api_common/authorizations/utils.py,sha256=VCXdU4q3CQ1cvuYkg1dPWSbZym1Ufoz5gSmbHYkQcgw,521
82
82
  vng_api_common/authorizations/validators.py,sha256=u7fKm0QgGy8fiAeYmIEB9Gy-yIE9C-tC2ZpnNQBXPso,2816
@@ -96,6 +96,7 @@ vng_api_common/authorizations/migrations/0013_auto_20201207_0846.py,sha256=fyJ0H
96
96
  vng_api_common/authorizations/migrations/0014_auto_20201221_0905.py,sha256=pkg7Y9yvUIY-QB9elvCxfR7OZJ3xMBIha_4WSZeDlwY,1659
97
97
  vng_api_common/authorizations/migrations/0015_auto_20220318_1608.py,sha256=jR1MDuqapBZU4bYVx0V3MRauRpDk_DtCVcBSe7gmtUA,1751
98
98
  vng_api_common/authorizations/migrations/0016_remove_authorizationsconfig_api_root_and_more.py,sha256=-UbTWExHaPL0O8585mm4_OFCm8xJXAmfwmU7V0ysSgg,2407
99
+ vng_api_common/authorizations/migrations/0017_alter_applicatie_client_ids_and_more.py,sha256=E8Iin_EJu9aClokT9MX-TuR-YSp5k3XfrIMSdtHvD3w,1436
99
100
  vng_api_common/authorizations/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
101
  vng_api_common/caching/__init__.py,sha256=v_FC6HaHESwr_J94TWzaQBKtIjDLnsQADvqHylEW7g8,687
101
102
  vng_api_common/caching/decorators.py,sha256=lU5dnBjD9aHjoYaV32FlYxY7VFZPdMZe26fVDa_h3Q4,1804
@@ -108,19 +109,19 @@ vng_api_common/conf/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
108
109
  vng_api_common/conf/api.py,sha256=Lx3Kk7S7mKxeaUr0dm6jbKrEh4WI2gye4i7QxN2x69E,3150
109
110
  vng_api_common/contrib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
110
111
  vng_api_common/contrib/setup_configuration/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
111
- vng_api_common/contrib/setup_configuration/models.py,sha256=oqw0cOrbromC9CS3nWzfpDgOLg_xXyHoAi7jgw0f7Yk,1195
112
- vng_api_common/contrib/setup_configuration/steps.py,sha256=3jYRdHFlPq5zR-T-SPYTDp_Aipy0JK1HaJFrSgH4Vd0,1680
112
+ vng_api_common/contrib/setup_configuration/models.py,sha256=1-G0hXeRe-x6GYtsAaQeMGXq0-cwU5LMb8KTQWj-pQk,1201
113
+ vng_api_common/contrib/setup_configuration/steps.py,sha256=Z1wqsI4brmTvbx1Josr7M_UZcgKoCnYJCPDe2XRlcdw,2035
113
114
  vng_api_common/db/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
114
115
  vng_api_common/db/operations.py,sha256=3vj9zD4EntMSmYsNGN1pRDjAcVM68MESDdoAk9wl0U0,3333
115
116
  vng_api_common/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
116
117
  vng_api_common/extensions/file.py,sha256=tvOiSYbu0CrVKefgO_nOj1af1L0JjShec3VkR-i-IWE,950
117
118
  vng_api_common/extensions/gegevensgroep.py,sha256=mfwXpQ8Zq8Tevv_bt28OZqv8a9u6L3yJEKQqXerKzBI,518
118
119
  vng_api_common/extensions/geojson.py,sha256=mVqry8F7RQm0YIK3m5scazePB7KprffQy02RNA1FOIE,9217
119
- vng_api_common/extensions/hyperlink.py,sha256=jadfiQ2vdJ78q-dXo3YOuDgv54zZWm8Y0nzg21aB_HE,1360
120
+ vng_api_common/extensions/hyperlink.py,sha256=wPjivZP4tU1mZc2wH7sX36SEAGejeog-CONUySPaAEQ,1382
120
121
  vng_api_common/extensions/polymorphic.py,sha256=Hjzn1VAx3E0Eafb7NctkNQuDYJeh6ln0KHgVNRjHG1s,2768
121
122
  vng_api_common/extensions/query.py,sha256=mXxv2aiyP-kHmXUrszHqxEKhAedUugwVJZljQ5nPLcY,585
122
- vng_api_common/locale/nl/LC_MESSAGES/django.mo,sha256=w1sFqpNIcpHWbNOFpKjVUmA3idit-Q1SH2wE5h0nXPU,6211
123
- vng_api_common/locale/nl/LC_MESSAGES/django.po,sha256=UVAmaSTntaUC73IY4rAN-iT3FoIpLSh4bj-8DyqcwPw,19495
123
+ vng_api_common/locale/nl/LC_MESSAGES/django.mo,sha256=qcZT0NRN7oUzyoPGdV4kVFgovQ6gRhSvVthgFuItqEs,5094
124
+ vng_api_common/locale/nl/LC_MESSAGES/django.po,sha256=_pSS99mfvZUnBobzffC8Yz3lCt4w8eKUxEx7YBcsFdY,20519
124
125
  vng_api_common/migrations/0001_initial.py,sha256=frE83rux6uVHK4v-1fsb_1C00TBQQ6koFBA3DoVPHmk,895
125
126
  vng_api_common/migrations/0002_apicredential.py,sha256=AYgkLMizI0g-Ogth8j_FVJHTDDI3bWzQgZzuQeABzaU,1083
126
127
  vng_api_common/migrations/0003_auto_20190417_1145.py,sha256=0ABqDggAdjmZxhSsLrMb2ZBwTcR1BOWo1Tn8StfiG0A,1001
@@ -182,7 +183,7 @@ vng_api_common/tests/auth.py,sha256=IKDWTEFv4Bign4F70-ibsFcnJqRxEJaXvqaPQJWa1xY,
182
183
  vng_api_common/tests/caching.py,sha256=zfIw5cRRvO9cekHZZKfRqZc8cx5IfJUYNmcH6cuIMg4,624
183
184
  vng_api_common/tests/schema.py,sha256=WDvifDQQiKqIpQijpeQ7rYkFroJmuPuHe7zNhl1Bigk,2293
184
185
  vng_api_common/tests/urls.py,sha256=PFrYzQbBC0TFPMEn3uPhcBG0IQs9JsEPqckicJT1UA4,2159
185
- commonground_api_common-2.5.0.dist-info/METADATA,sha256=h6PrcdoJEkOrGklI9qIKWV6YsNIpPilsXP2fG1m-P0Q,6988
186
- commonground_api_common-2.5.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
187
- commonground_api_common-2.5.0.dist-info/top_level.txt,sha256=vPismc83zPzWXTmlNCCwfDlFV9iygJYxNJW5iDjKTgw,15
188
- commonground_api_common-2.5.0.dist-info/RECORD,,
186
+ commonground_api_common-2.5.2.dist-info/METADATA,sha256=vD9d-hnOgZrYDCzWBdhRledOcwBZ8NTPHD2CHxNMKSc,6988
187
+ commonground_api_common-2.5.2.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
188
+ commonground_api_common-2.5.2.dist-info/top_level.txt,sha256=vPismc83zPzWXTmlNCCwfDlFV9iygJYxNJW5iDjKTgw,15
189
+ commonground_api_common-2.5.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1 +1 @@
1
- __version__ = "2.5.0"
1
+ __version__ = "2.5.2"
@@ -0,0 +1,41 @@
1
+ # Generated by Django 4.2.17 on 2025-02-10 13:18
2
+
3
+ import django.contrib.postgres.fields
4
+ from django.db import migrations, models
5
+
6
+
7
+ class Migration(migrations.Migration):
8
+
9
+ dependencies = [
10
+ ("authorizations", "0016_remove_authorizationsconfig_api_root_and_more"),
11
+ ]
12
+
13
+ operations = [
14
+ migrations.AlterField(
15
+ model_name="applicatie",
16
+ name="client_ids",
17
+ field=django.contrib.postgres.fields.ArrayField(
18
+ base_field=models.CharField(max_length=50),
19
+ help_text="Comma separated list of consumer identifiers (client_ids)",
20
+ size=None,
21
+ verbose_name="client IDs",
22
+ ),
23
+ ),
24
+ migrations.AlterField(
25
+ model_name="applicatie",
26
+ name="heeft_alle_autorisaties",
27
+ field=models.BooleanField(
28
+ default=False,
29
+ help_text="If all authorizations are given to this applicatie, no individual permissions have to be configured. Only enable this if you fully trust the consumer.",
30
+ verbose_name="has all authorizations",
31
+ ),
32
+ ),
33
+ migrations.AlterField(
34
+ model_name="applicatie",
35
+ name="label",
36
+ field=models.CharField(
37
+ help_text="A human readable representation of the application, for end users.",
38
+ max_length=100,
39
+ ),
40
+ ),
41
+ ]
@@ -74,21 +74,21 @@ class Applicatie(APIMixin, models.Model):
74
74
  client_ids = ArrayField(
75
75
  models.CharField(max_length=50),
76
76
  verbose_name=_("client IDs"),
77
- help_text=_("Komma-gescheiden lijst van consumer identifiers (hun client_id)."),
77
+ help_text=_("Comma separated list of consumer identifiers (client_ids)"),
78
78
  )
79
79
  label = models.CharField(
80
80
  max_length=100,
81
81
  help_text=_(
82
- "Een leesbare representatie van de applicatie, voor eindgebruikers."
82
+ "A human readable representation of the application, for end users."
83
83
  ),
84
84
  )
85
85
  heeft_alle_autorisaties = models.BooleanField(
86
- _("heeft alle autorisaties"),
86
+ _("has all authorizations"),
87
87
  default=False,
88
88
  help_text=_(
89
- "Indien alle autorisaties gegeven zijn, dan hoeven deze "
90
- "niet individueel opgegeven te worden. Gebruik dit alleen "
91
- "als je de consumer helemaal vertrouwt."
89
+ "If all authorizations are given to this applicatie, no individual "
90
+ "permissions have to be configured. Only enable this if you "
91
+ "fully trust the consumer."
92
92
  ),
93
93
  )
94
94
 
@@ -14,7 +14,7 @@ class SingleJWTSecretConfigurationModel(ConfigurationModel):
14
14
  ]
15
15
  }
16
16
  extra_kwargs = {
17
- "identifier": {"examples": ["application-name"]},
17
+ "identifier": {"examples": ["open-notificaties-prod"]},
18
18
  "secret": {"examples": ["modify-this"]},
19
19
  }
20
20
 
@@ -26,7 +26,12 @@ class JWTSecretsConfigurationStep(BaseConfigurationStep[JWTSecretsConfigurationM
26
26
 
27
27
  class ApplicatieConfigurationStep(BaseConfigurationStep[ApplicatieConfigurationModel]):
28
28
  """
29
- Configure Applicatie used for authorization
29
+ Configure Applicaties used for authorization.
30
+
31
+ .. note:: The values of ``client_ids`` must match the values of the ``identifier`` field(s)
32
+ in the ``vng_api_common_credentials`` namespace. To give proper access to an application,
33
+ you need to load the credentials (``identifier`` and ``secret``)
34
+ **and** the Applicatie (``client_ids``, ``uuid``, ``label`` and permissions)
30
35
  """
31
36
 
32
37
  verbose_name = "Configuration to create applicaties"
@@ -32,6 +32,7 @@ class HyperlinkedIdentityFieldExtension(OpenApiSerializerFieldExtension):
32
32
  "minLength": 1,
33
33
  "maxLength": 1000,
34
34
  "description": _(
35
- "URL-referentie naar dit object. Dit is de unieke identificatie en locatie van dit object."
35
+ "URL reference to this object. "
36
+ "This is the unique identification and location of this object."
36
37
  ),
37
38
  }