Implement US-13 patient authentication and persistent ownership

This commit is contained in:
Steffen committed 2026-10-05 11:10:22 +02:00
1 parent ebf50827d6
commit 0ce9b2b168
36 files changed
+1203 -28

No files matched your search

+16 -3
View File
@@ -1,8 +1,21 @@
ASPNETCORE_ENVIRONMENT=Production
Services__PatientProfile__BaseUrl=http://patient-profile.example.test:5081/
Services__PatientProfile__BaseUrl=https://patient-profile.example.test:5081/
ASPNETCORE_URLS=https://0.0.0.0:5443
Kestrel__Certificates__Default__Path=/etc/healthapp/gateway.pfx
Kestrel__Certificates__Default__Password=REPLACE_ME
Services__Observation__BaseUrl=http://observation.example.test:5082/
Services__Observation__BaseUrl=https://observation.example.test:5082/
Services__Insights__BaseUrl=http://insights.example.test:5083/
Services__Insights__BaseUrl=https://insights.example.test:5083/
Authentication__KeyDirectory=/var/lib/healthapp-api-gateway/keys
Authentication__TokenLifetimeMinutes=30
# Account identifiers support ASCII letters, digits, hyphen and underscore.
Authentication__Accounts__0__AccountId=example-patient
Authentication__Accounts__0__Role=Patient
Authentication__Accounts__0__PasswordHash=REPLACE_WITH_ASPNET_CORE_PASSWORD_HASH
# Use distinct randomly generated credentials of at least 32 characters.
Services__PatientProfile__Key=REPLACE_ME
Services__Observation__Key=REPLACE_ME
Services__Insights__Key=REPLACE_ME
InternalAccess__Observation__Key=REPLACE_ME
InternalAccess__Insights__Key=REPLACE_ME
+6 -1
View File
@@ -1,3 +1,8 @@
ASPNETCORE_ENVIRONMENT=Production
ASPNETCORE_URLS=http://0.0.0.0:5083
ASPNETCORE_URLS=https://0.0.0.0:5083
Services__ApiGateway__BaseUrl=https://gateway.example.test:5443/
InternalAccess__GatewayKey=REPLACE_ME
Kestrel__Certificates__Default__Path=/etc/healthapp/service.pfx
Kestrel__Certificates__Default__Password=REPLACE_ME
Services__ApiGateway__Key=REPLACE_ME
+6 -1
View File
@@ -1,4 +1,9 @@
ASPNETCORE_ENVIRONMENT=Production
ASPNETCORE_URLS=http://0.0.0.0:5082
ASPNETCORE_URLS=https://0.0.0.0:5082
ConnectionStrings__ObservationDatabase="Host=database.example.test;Port=5432;Database=observations;Username=observations;Password=REPLACE_ME"
Services__ApiGateway__BaseUrl=https://gateway.example.test:5443/
InternalAccess__GatewayKey=REPLACE_ME
Kestrel__Certificates__Default__Path=/etc/healthapp/service.pfx
Kestrel__Certificates__Default__Password=REPLACE_ME
Services__ApiGateway__Key=REPLACE_ME
+5 -1
View File
@@ -1,3 +1,7 @@
ASPNETCORE_ENVIRONMENT=Production
ASPNETCORE_URLS=http://0.0.0.0:5081
ASPNETCORE_URLS=https://0.0.0.0:5081
ConnectionStrings__PatientDatabase="Host=database.example.test;Port=5432;Database=patient_profile;Username=patient_profile;Password=REPLACE_ME"
InternalAccess__GatewayKey=REPLACE_ME
Kestrel__Certificates__Default__Path=/etc/healthapp/service.pfx
Kestrel__Certificates__Default__Password=REPLACE_ME
@@ -4,6 +4,8 @@ Wants=network-online.target
After=network-online.target
[Service]
StateDirectory=healthapp-api-gateway
StateDirectoryMode=0700
Type=simple
User=healthapp
Group=healthapp