Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 50523c7d authored by Marco Amoia's avatar Marco Amoia
Browse files

Merge branch 'release' into 'main'

Update 1.4.0

See merge request !125
parents e6cd1a00 d7e28518
No related branches found
No related tags found
2 merge requests!131Feature/update 1.6.0,!125Update 1.4.0
Pipeline #301432 failed
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.8.0] - 2024-12-02
### Added
- Added seeding component for identity attributes.
- Added documentation for seeding configuration.
- Added `enabled` and `filePath` properties to configure seeding procedure.
- Added column `is_right` to table `identity_attribute`.
### Changed
- Renamed attribute `participantType` to `participantTypes` in `SecurityAttributesMappingDTO`.
- Column `is_right` of `identity_attribute` is not nullable anymore and has "false" as default value.
### Fixed
- Fix unit testing.
## [0.7.0] - 2024-11-11
### Changed
- Adapt logic to use `CredentialId` instead of `ParticipantId`
### Fixed
- Fix `credentialId` instead of `certificateId`
### Removed
- Remove `participantType` enum
classDiagram
IdentityAttribute "1" -- "0..n" IdentityAttributeParticipantType
IdentityAttribute "1" -- "0..n" ParticipantIdentityAttribute
class IdentityAttribute {
+uuid id
+string code
+string name
+string description
+boolean assignable_to_roles
+boolean enabled
+timestamp creation_timestamp
+timestamp update_timestamp
+boolean is_right
}
class IdentityAttributeParticipantType {
+uuid identity_attribute_id
+string participant_type
}
class ParticipantIdentityAttribute {
+uuid participant_id
+uuid identity_attribute_id
}
docs/logical_data_model.png

235 KiB

PROJECT_VERSION_NUMBER="1.3.1" PROJECT_VERSION_NUMBER="1.4.0"
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
<parent> <parent>
<groupId>eu.europa.ec.simpl</groupId> <groupId>eu.europa.ec.simpl</groupId>
<artifactId>simpl-parent</artifactId> <artifactId>simpl-parent</artifactId>
<version>1.3.0</version> <version>1.4.0</version>
<relativePath/> <!-- lookup parent from repository --> <relativePath/> <!-- lookup parent from repository -->
</parent> </parent>
<artifactId>security-attributes-provider</artifactId> <artifactId>security-attributes-provider</artifactId>
<version>1.3.1</version> <version>1.4.0</version>
<name>Security Attributes Provider</name> <name>Security Attributes Provider</name>
<description>Security Attributes Provider Microservice for SIMPL project</description> <description>Security Attributes Provider Microservice for SIMPL project</description>
......
...@@ -60,3 +60,13 @@ database-seeding: ...@@ -60,3 +60,13 @@ database-seeding:
securityAttributeProviderMapping: securityAttributeProviderMapping:
enabled: true enabled: true
filePath: "classpath:db.seeding/identityAttributes.default.json" filePath: "classpath:db.seeding/identityAttributes.default.json"
springdoc:
swagger-ui:
urlsPrimaryName: v1
urls:
- name: v1
url: /openapi/securityattributesprovider-v1.yaml
- name: v0
url: /openapi/securityattributesprovider-v0.yaml
...@@ -13,8 +13,8 @@ import static org.mockito.BDDMockito.given; ...@@ -13,8 +13,8 @@ import static org.mockito.BDDMockito.given;
import static org.mockito.BDDMockito.then; import static org.mockito.BDDMockito.then;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
import eu.europa.ec.simpl.api.onboarding.v1.exchanges.ParticipantTypesApi;
import eu.europa.ec.simpl.common.exchanges.identityprovider.IdentityProviderParticipantExchange; import eu.europa.ec.simpl.common.exchanges.identityprovider.IdentityProviderParticipantExchange;
import eu.europa.ec.simpl.common.exchanges.onboarding.ParticipantTypeExchange;
import eu.europa.ec.simpl.common.filters.IdentityAttributeFilter; import eu.europa.ec.simpl.common.filters.IdentityAttributeFilter;
import eu.europa.ec.simpl.common.filters.ParticipantFilter; import eu.europa.ec.simpl.common.filters.ParticipantFilter;
import eu.europa.ec.simpl.common.model.dto.identityprovider.ParticipantDTO; import eu.europa.ec.simpl.common.model.dto.identityprovider.ParticipantDTO;
...@@ -60,7 +60,7 @@ class IdentityAttributeServiceImplTest { ...@@ -60,7 +60,7 @@ class IdentityAttributeServiceImplTest {
IdentityProviderParticipantExchange participantExchange; IdentityProviderParticipantExchange participantExchange;
@Mock @Mock
ParticipantTypeExchange participantTypeExchange; ParticipantTypesApi participantTypeExchange;
@Mock @Mock
ParticipantTypeService participantTypeService; ParticipantTypeService participantTypeService;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment