From 3b29e3816004d4f233f2d20882415ea03b8da259 Mon Sep 17 00:00:00 2001 From: Are Almaas Date: Tue, 5 Nov 2024 14:44:14 +0100 Subject: [PATCH] fix(service): ensure correct maskinporten environment --- .../appsettings.prod.json | 5 +++-- .../appsettings.staging.json | 10 ++++------ .../appsettings.test.json | 10 ++++------ .../appsettings.yt01.json | 3 ++- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/src/Digdir.Domain.Dialogporten.Service/appsettings.prod.json b/src/Digdir.Domain.Dialogporten.Service/appsettings.prod.json index c81a8129f..dfa7c83d7 100644 --- a/src/Digdir.Domain.Dialogporten.Service/appsettings.prod.json +++ b/src/Digdir.Domain.Dialogporten.Service/appsettings.prod.json @@ -19,7 +19,8 @@ // -------------------------- // Any additional settings are specific for the selected client definition type. // See below for examples using other types. - "EncodedJwk": "TODO: Add to local secrets" + "EncodedJwk": "TODO: Add to local secrets", + "TokenExchangeEnvironment": "prod" }, "Altinn": { "BaseUri": "https://platform.altinn.no/", @@ -44,4 +45,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/Digdir.Domain.Dialogporten.Service/appsettings.staging.json b/src/Digdir.Domain.Dialogporten.Service/appsettings.staging.json index c7c324698..bc29baf2e 100644 --- a/src/Digdir.Domain.Dialogporten.Service/appsettings.staging.json +++ b/src/Digdir.Domain.Dialogporten.Service/appsettings.staging.json @@ -3,7 +3,7 @@ "MassTransit": { "Host": "TODO: Add to local secrets" }, - "Redis":{ + "Redis": { "ConnectionString": "TODO: Add to local secrets" }, "DialogDbConnectionString": "TODO: Add to local secrets", @@ -12,17 +12,15 @@ "Maskinporten": { // 1. Valid values are test and prod "Environment": "test", - // 2. Client Id/integration as configured in Maskinporten "ClientId": "TODO: Add to local secrets", - // 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id. "Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin", - // -------------------------- // Any additional settings are specific for the selected client definition type. // See below for examples using other types. - "EncodedJwk": "TODO: Add to local secrets" + "EncodedJwk": "TODO: Add to local secrets", + "TokenExchangeEnvironment": "tt02" }, "Altinn": { "BaseUri": "https://platform.tt02.altinn.no/", @@ -47,4 +45,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/Digdir.Domain.Dialogporten.Service/appsettings.test.json b/src/Digdir.Domain.Dialogporten.Service/appsettings.test.json index ce9da8fd5..3a25f41cb 100644 --- a/src/Digdir.Domain.Dialogporten.Service/appsettings.test.json +++ b/src/Digdir.Domain.Dialogporten.Service/appsettings.test.json @@ -3,7 +3,7 @@ "MassTransit": { "Host": "TODO: Add to local secrets" }, - "Redis":{ + "Redis": { "ConnectionString": "TODO: Add to local secrets" }, "DialogDbConnectionString": "TODO: Add to local secrets", @@ -12,17 +12,15 @@ "Maskinporten": { // 1. Valid values are test and prod "Environment": "test", - // 2. Client Id/integration as configured in Maskinporten "ClientId": "TODO: Add to local secrets", - // 3. Scope(s) requested, space seperated. Must be provisioned on supplied client id. "Scope": "altinn:events.publish altinn:events.publish.admin altinn:register/partylookup.admin altinn:authorization/authorize.admin altinn:accessmanagement/authorizedparties.admin", - // -------------------------- // Any additional settings are specific for the selected client definition type. // See below for examples using other types. - "EncodedJwk": "TODO: Add to local secrets" + "EncodedJwk": "TODO: Add to local secrets", + "TokenExchangeEnvironment": "tt02" }, "Altinn": { "BaseUri": "https://platform.tt02.altinn.no/", @@ -47,4 +45,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/Digdir.Domain.Dialogporten.Service/appsettings.yt01.json b/src/Digdir.Domain.Dialogporten.Service/appsettings.yt01.json index 3ba393988..0d32240be 100644 --- a/src/Digdir.Domain.Dialogporten.Service/appsettings.yt01.json +++ b/src/Digdir.Domain.Dialogporten.Service/appsettings.yt01.json @@ -19,7 +19,8 @@ // -------------------------- // Any additional settings are specific for the selected client definition type. // See below for examples using other types. - "EncodedJwk": "TODO: Add to local secrets" + "EncodedJwk": "TODO: Add to local secrets", + "TokenExchangeEnvironment": "yt01" }, "Altinn": { "BaseUri": "https://platform.yt01.altinn.cloud/",