Elffuss BraidHub

kikocis/dataspace-portal public

feat: change client id generation for connectors central components (#394)

* feat(ClientIdUtils): use connectorId as clientId as it is

* test: make sure that connectorId equals clientId

* docs: update CHANGELOG.md
Changeset2b1facebe46ed7b69132e14688b6fce4cccc5590c54860eb41a6d91097a57166
AuthorPaddseL <patrick.schauer@sovity.de> · 2024-12-10 14:30 +01:00
CommitterGitHub <noreply@github.com> · 2024-12-10 14:30 +01:00
Parentsd0dea3578ccf

Browse the files at this changeset

4 files changed

modified CHANGELOG.md +1 −0
@@ -30,6 +30,7 @@
3030 - Fixed an issue wherein it was possible to bypass the CaaS request limit in an organization ([PR #384](https://github.com/sovity/authority-portal/pull/384))
3131 - Fixed an issue wherein a user registration could fail due to a mismatch of the internal database and the Keycloak database
3232 - Fixed an issue where entries in the connector overview would randomly switch places ([PR #386](https://github.com/sovity/authority-portal/pull/386))
33+- Changed Client ID generation for Connectors & Central Components ([#327](https://github.com/sovity/authority-portal/issues/327))
3334
3435 ### Known issues
3536
modified authority-portal-backend/authority-portal-quarkus/src/main/kotlin/de/sovity/authorityportal/web/utils/idmanagement/ClientIdUtils.kt +0 −2
@@ -26,8 +26,6 @@
2626
2727 fun generateFromConnectorId(connectorId: String): String {
2828 return connectorId
29- .replace(".", "-")
30- .lowercase(Locale.getDefault())
3129 }
3230
3331 fun exists(clientId: String): Boolean {
modified authority-portal-backend/authority-portal-quarkus/src/test/kotlin/de/sovity/authorityportal/web/tests/services/connector/CaasManagementApiServiceTest.kt +1 −0
@@ -154,6 +154,7 @@
154154 .withOffsetDateTimeComparator()
155155 .withStrictTypeChecking()
156156 .isEqualTo(expected.copy())
157+ assertThat(actual.connectorId).isEqualTo(actual.clientId)
157158 }
158159
159160 @Test
modified authority-portal-backend/authority-portal-quarkus/src/test/kotlin/de/sovity/authorityportal/web/tests/services/connector/ConnectorManagementApiServiceTest.kt +1 −0
@@ -547,6 +547,7 @@
547547 .withOffsetDateTimeComparator()
548548 .withStrictTypeChecking()
549549 .isEqualTo(expected.copy())
550+ assertThat(actual.connectorId).isEqualTo(actual.clientId)
550551 }
551552
552553 @Test