Skip to content

Commit

Permalink
fix(service): ensure correct maskinporten environment
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Nov 5, 2024
1 parent c887542 commit 3b29e38
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
5 changes: 3 additions & 2 deletions src/Digdir.Domain.Dialogporten.Service/appsettings.prod.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand All @@ -44,4 +45,4 @@
}
}
}
}
}
10 changes: 4 additions & 6 deletions src/Digdir.Domain.Dialogporten.Service/appsettings.staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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/",
Expand All @@ -47,4 +45,4 @@
}
}
}
}
}
10 changes: 4 additions & 6 deletions src/Digdir.Domain.Dialogporten.Service/appsettings.test.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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/",
Expand All @@ -47,4 +45,4 @@
}
}
}
}
}
3 changes: 2 additions & 1 deletion src/Digdir.Domain.Dialogporten.Service/appsettings.yt01.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/",
Expand Down

0 comments on commit 3b29e38

Please sign in to comment.