diff --git a/src/Digdir.Domain.Dialogporten.GraphQL/appsettings.prod.json b/src/Digdir.Domain.Dialogporten.GraphQL/appsettings.prod.json new file mode 100644 index 000000000..cd875e6a8 --- /dev/null +++ b/src/Digdir.Domain.Dialogporten.GraphQL/appsettings.prod.json @@ -0,0 +1,69 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "Infrastructure": { + "Redis": { + "Enabled": true, + "ConnectionString": "TODO: Add to local secrets" + }, + "DialogDbConnectionString": "TODO: Add to local secrets", + // Settings from appsettings.json, environment variables or other configuration providers. + // The first three are always mandatory for all client definitions types + "Maskinporten": { + // 1. Valid values are test and prod + "Environment": "prod", + // 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" + }, + "Altinn": { + "BaseUri": "https://platform.altinn.no/", + "EventsBaseUri": "Secret webhook sink URL in source key vault", + "SubscriptionKey": "TODO: Add to local secrets" + } + }, + "Application": { + "Dialogporten": { + "BaseUri": "https://platform.altinn.no/dialogporten", + "Ed25519KeyPairs": { + "Primary": { + "Kid": "TODO: Add to local secrets", + "PrivateComponent": "TODO: Add to local secrets", + "PublicComponent": "TODO: Add to local secrets" + }, + "Secondary": { + "Kid": "TODO: Add to local secrets", + "PrivateComponent": "TODO: Add to local secrets", + "PublicComponent": "TODO: Add to local secrets" + } + } + } + }, + "GraphQl": { + "Authentication": { + "JwtBearerTokenSchemas": [ + { + "Name": "Maskinporten", + "WellKnown": "https://maskinporten.no/.well-known/oauth-authorization-server/" + }, + { + "Name": "Altinn", + "WellKnown": "https://platform.altinn.no/authentication/api/v1/openid/.well-known/openid-configuration" + }, + { + "Name": "Idporten", + "WellKnown": "https://idporten.no/.well-known/openid-configuration" + } + ] + } + } +} \ No newline at end of file diff --git a/src/Digdir.Domain.Dialogporten.WebApi/appsettings.prod.json b/src/Digdir.Domain.Dialogporten.WebApi/appsettings.prod.json new file mode 100644 index 000000000..a9e687734 --- /dev/null +++ b/src/Digdir.Domain.Dialogporten.WebApi/appsettings.prod.json @@ -0,0 +1,69 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "Infrastructure": { + "Redis": { + "Enabled": true, + "ConnectionString": "TODO: Add to local secrets" + }, + "DialogDbConnectionString": "TODO: Add to local secrets", + // Settings from appsettings.json, environment variables or other configuration providers. + // The first three are always mandatory for all client definitions types + "Maskinporten": { + // 1. Valid values are test and prod + "Environment": "prod", + // 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" + }, + "Altinn": { + "BaseUri": "https://platform.altinn.no/", + "EventsBaseUri": "https://platform.altinn.no/", + "SubscriptionKey": "TODO: Add to local secrets" + } + }, + "Application": { + "Dialogporten": { + "BaseUri": "https://platform.altinn.no/dialogporten", + "Ed25519KeyPairs": { + "Primary": { + "Kid": "TODO: Add to local secrets", + "PrivateComponent": "TODO: Add to local secrets", + "PublicComponent": "TODO: Add to local secrets" + }, + "Secondary": { + "Kid": "TODO: Add to local secrets", + "PrivateComponent": "TODO: Add to local secrets", + "PublicComponent": "TODO: Add to local secrets" + } + } + } + }, + "WebApi": { + "Authentication": { + "JwtBearerTokenSchemas": [ + { + "Name": "Maskinporten", + "WellKnown": "https://maskinporten.no/.well-known/oauth-authorization-server/" + }, + { + "Name": "Altinn", + "WellKnown": "https://platform.altinn.no/authentication/api/v1/openid/.well-known/openid-configuration" + }, + { + "Name": "Idporten", + "WellKnown": "https://idporten.no/.well-known/openid-configuration" + } + ] + } + } +} \ No newline at end of file