Skip to content

Commit

Permalink
build: merge main into dev #561
Browse files Browse the repository at this point in the history
Reviewed-By: Evelyn Gurschler <[email protected]>
  • Loading branch information
Phil91 authored Mar 5, 2024
2 parents 7a16e00 + 54576b7 commit 3377db8
Show file tree
Hide file tree
Showing 20 changed files with 180 additions and 222 deletions.
266 changes: 100 additions & 166 deletions CHANGELOG.md

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion FILEHEADER.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@ Every time you create a new file or edit a file that you created and doesn't yet

Currently the following templates are available:
* cx_header_default
* cx_header_with_#
* cx_header_with_#

## NOTICE

This work is licensed under the [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0).

- SPDX-License-Identifier: Apache-2.0
- SPDX-FileCopyrightText: 2021-2024 Contributors to the Eclipse Foundation
- Source URL: https://github.com/eclipse-tractusx/portal-backend
61 changes: 26 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
# Catena-X Portal Backend
[![LeadingRepository](https://img.shields.io/badge/Leading_Repository-Portal-blue)](https://github.com/eclipse-tractusx/portal)

This repository contains the backend code for the Catena-X Portal written in C#.
# Portal Backend

The Catena-X Portal application consists of
This repository contains the backend code for the Portal written in C#.

* [portal-frontend](https://github.com/eclipse-tractusx/portal-frontend),
* [portal-frontend-registration](https://github.com/eclipse-tractusx/portal-frontend-registration),
* [portal-assets](https://github.com/eclipse-tractusx/portal-assets) and
* [portal-backend](https://github.com/eclipse-tractusx/portal-backend).
The Portal application consists of

![Tag](https://img.shields.io/static/v1?label=&message=LeadingRepository&color=green&style=flat) The helm chart for installing the Catena-X Portal is available in the [portal](https://github.com/eclipse-tractusx/portal) repository.
- [portal-frontend](https://github.com/eclipse-tractusx/portal-frontend),
- [portal-frontend-registration](https://github.com/eclipse-tractusx/portal-frontend-registration),
- [portal-shared-components](https://github.com/eclipse-tractusx/portal-shared-components),
- [portal-assets](https://github.com/eclipse-tractusx/portal-assets) and
- [portal-backend](https://github.com/eclipse-tractusx/portal-backend).

The Catena-X Portal is designed to work with the [Catena-X IAM](https://github.com/eclipse-tractusx/portal-iam).
The helm chart for installing the Portal is available in the [portal](https://github.com/eclipse-tractusx/portal) repository.

Please refer to the `docs` directory of the [portal-assets](https://github.com/eclipse-tractusx/portal-assets) repository for the overarching user and developer documentation of the Portal application.

The Portal is designed to work with the [IAM](https://github.com/eclipse-tractusx/portal-iam).

## How to build and run

Install [the .NET 7.0 SDK](https://www.microsoft.com/net/download).
Install the [.NET 7.0 SDK](https://www.microsoft.com/net/download).

Run the following command from the CLI:

Expand All @@ -34,31 +39,17 @@ dotnet run

This application provides container images for demonstration purposes.

### DockerHub

* [portal-registration-service](https://hub.docker.com/r/tractusx/portal-registration-service)
* [portal-administration-service](https://hub.docker.com/r/tractusx/portal-administration-service)
* [portal-marketplace-app-service](https://hub.docker.com/r/tractusx/portal-marketplace-app-service)
* [portal-services-service](https://hub.docker.com/r/tractusx/portal-services-service)
* [portal-notification-service](https://hub.docker.com/r/tractusx/portal-notification-service)
* [portal-processes-worker](https://hub.docker.com/r/tractusx/portal-processes-worker)
* [portal-portal-migrations](https://hub.docker.com/r/tractusx/portal-portal-migrations)
* [portal-provisioning-migrations](https://hub.docker.com/r/tractusx/portal-provisioning-migrations)
* [portal-maintenance-service](https://hub.docker.com/r/tractusx/portal-maintenance-service)

### Base images

mcr.microsoft.com/dotnet/aspnet:7.0-alpine:

* Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.17/amd64/Dockerfile)
* GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
* DockerHub: [https://hub.docker.com/_/microsoft-dotnet-aspnet](https://hub.docker.com/_/microsoft-dotnet-aspnet)

mcr.microsoft.com/dotnet/runtime:7.0-alpine:

* Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.17/amd64/Dockerfile)
* GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
* DockerHub: [https://hub.docker.com/_/microsoft-dotnet-runtime](https://hub.docker.com/_/microsoft-dotnet-runtime)
See Docker notice files for more information:

* [portal-registration-service](./docker/notice-registration-service.md)
* [portal-administration-service](./docker/notice-administration-service.md)
* [portal-marketplace-app-service](./docker/notice-marketplace-app-service.md)
* [portal-services-service](./docker/notice-services-service.md)
* [portal-notification-service](./docker/notice-notification-service.md)
* [portal-processes-worker](./docker/notice-processes-worker.md)
* [portal-portal-migrations](./docker/notice-portal-migrations.md)
* [portal-provisioning-migrations](./docker/notice-provisioning-migrations.md)
* [portal-maintenance-service](./docker/notice-maintenance-service.md)

## Notice for Nuget Packages

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-administration-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Administration Service__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-aspnet](https://hub.docker.com/_/microsoft-dotnet-aspnet)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-iam-seeding.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal IAM Seeding job__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/runtime:6.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/6.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-runtime](https://hub.docker.com/_/microsoft-dotnet-runtime)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-maintenance-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Checklist Worker__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-runtime](https://hub.docker.com/_/microsoft-dotnet-runtime)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-marketplace-app-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Administration Service__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-aspnet](https://hub.docker.com/_/microsoft-dotnet-aspnet)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-notification-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Administration Service__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-aspnet](https://hub.docker.com/_/microsoft-dotnet-aspnet)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-portal-migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Checklist Worker__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-runtime](https://hub.docker.com/_/microsoft-dotnet-runtime)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-processes-worker.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Checklist Worker__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-runtime](https://hub.docker.com/_/microsoft-dotnet-runtime)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-provisioning-migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Checklist Worker__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/runtime:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-runtime](https://hub.docker.com/_/microsoft-dotnet-runtime)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-registration-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Administration Service__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-aspnet](https://hub.docker.com/_/microsoft-dotnet-aspnet)

Expand Down
2 changes: 1 addition & 1 deletion docker/notice-services-service.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ __Portal Administration Service__

__Used base images__

- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.17/amd64/Dockerfile)
- Dockerfile: [mcr.microsoft.com/dotnet/aspnet:7.0-alpine](https://github.com/dotnet/dotnet-docker/blob/main/src/aspnet/7.0/alpine3.19/amd64/Dockerfile)
- GitHub project: [https://github.com/dotnet/dotnet-docker](https://github.com/dotnet/dotnet-docker)
- DockerHub: [https://hub.docker.com/_/microsoft-dotnet-aspnet](https://hub.docker.com/_/microsoft-dotnet-aspnet)

Expand Down
8 changes: 8 additions & 0 deletions docs/nuget/update-nuget-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@ To update the version of a specific package:
```

NUGET_API_KEY is the key generated on nuget.org. The last command should only be executed within the github action [nuget-package-push](/.github/workflows/nuget-package-push.yml)

## NOTICE

This work is licensed under the [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0).

- SPDX-License-Identifier: Apache-2.0
- SPDX-FileCopyrightText: 2024 Contributors to the Eclipse Foundation
- Source URL: https://github.com/eclipse-tractusx/portal-backend
8 changes: 8 additions & 0 deletions scripts/check-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ This workflow uses the executable jar in the download directory.
In order to update the executable jar run the following command from the root directory:

curl -L --output ./scripts/download/org.eclipse.dash.licenses-1.0.2.jar 'https://repo.eclipse.org/service/local/artifact/maven/redirect?r=dash-licenses&g=org.eclipse.dash&a=org.eclipse.dash.licenses&v=1.0.2'

## NOTICE

This work is licensed under the [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0).

- SPDX-License-Identifier: Apache-2.0
- SPDX-FileCopyrightText: 2021-2024 Contributors to the Eclipse Foundation
- Source URL: https://github.com/eclipse-tractusx/portal-backend
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>1.8.0</VersionPrefix>
<VersionSuffix>RC7</VersionSuffix>
<VersionSuffix></VersionSuffix>
</PropertyGroup>
</Project>
7 changes: 5 additions & 2 deletions src/keycloak/Keycloak.Library/Models/Clients/ClientConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* MIT License
*
* Copyright (c) 2019 Luk Vermeulen
* Copyright (c) 2021, 2023 BMW Group AG
* Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
* Copyright (c) 2021, 2024 BMW Group AG
* Copyright (c) 2021, 2024 Contributors to the Eclipse Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -46,4 +46,7 @@ public class ClientConfig
public string? FriendlyName { get; set; }
[JsonProperty("attribute.name")]
public string? AttributeName { get; set; }

[JsonProperty("user.session.note")]
public string? UserSessionNote { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
* MIT License
*
* Copyright (c) 2019 Luk Vermeulen
* Copyright (c) 2021, 2023 BMW Group AG
* Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
* Copyright (c) 2021, 2024 BMW Group AG
* Copyright (c) 2021, 2024 Contributors to the Eclipse Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -64,4 +64,7 @@ public class Config
public string? IncludedClientAudience { get; set; }
[JsonProperty("multivalued")]
public string? Multivalued { get; set; }

[JsonProperty("user.session.note")]
public string? UserSessionNote { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -232,5 +232,6 @@ private static bool CompareClientProtocolMapperConfig(ClientConfig config, IRead
config.ClaimName == update.GetValueOrDefault("claim.name") &&
config.JsonTypelabel == update.GetValueOrDefault("jsonType.label") &&
config.FriendlyName == update.GetValueOrDefault("friendly.name") &&
config.AttributeName == update.GetValueOrDefault("attribute.name");
config.AttributeName == update.GetValueOrDefault("attribute.name") &&
config.UserSessionNote == update.GetValueOrDefault("user.session.note");
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/********************************************************************************
* Copyright (c) 2021, 2023 BMW Group AG
* Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation
* Copyright (c) 2021, 2024 BMW Group AG
* Copyright (c) 2021, 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
Expand Down Expand Up @@ -63,7 +63,8 @@ private static Config CreateProtocolMapperConfig(IReadOnlyDictionary<string, str
UserAttributeRegion = update.GetValueOrDefault("user.attribute.region"),
UserAttributeLocality = update.GetValueOrDefault("user.attribute.locality"),
IncludedClientAudience = update.GetValueOrDefault("included.client.audience"),
Multivalued = update.GetValueOrDefault("multivalued")
Multivalued = update.GetValueOrDefault("multivalued"),
UserSessionNote = update.GetValueOrDefault("user.session.note"),
};

private static bool CompareProtocolMapperConfig(Config config, IReadOnlyDictionary<string, string> update) =>
Expand All @@ -83,5 +84,6 @@ private static bool CompareProtocolMapperConfig(Config config, IReadOnlyDictiona
config.UserAttributeRegion == update.GetValueOrDefault("user.attribute.region") &&
config.UserAttributeLocality == update.GetValueOrDefault("user.attribute.locality") &&
config.IncludedClientAudience == update.GetValueOrDefault("included.client.audience") &&
config.Multivalued == update.GetValueOrDefault("multivalued");
config.Multivalued == update.GetValueOrDefault("multivalued") &&
config.UserSessionNote == update.GetValueOrDefault("user.session.note");
}

0 comments on commit 3377db8

Please sign in to comment.