This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "Microsoft.Resources/deployments",
|
"type": "Microsoft.Resources/deployments",
|
||||||
"name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('usim-adp-registration', subscription().subscriptionId)))]",
|
"name": "[concat(parameters('resourceGroupName'), 'Deployment', uniqueString(concat('ps-adp-registration', subscription().subscriptionId)))]",
|
||||||
"resourceGroup": "[parameters('resourceGroupName')]",
|
"resourceGroup": "[parameters('resourceGroupName')]",
|
||||||
"apiVersion": "2019-10-01",
|
"apiVersion": "2019-10-01",
|
||||||
"dependsOn": [
|
"dependsOn": [
|
||||||
@@ -50,7 +50,7 @@
|
|||||||
"resources": [
|
"resources": [
|
||||||
{
|
{
|
||||||
"kind": "web",
|
"kind": "web",
|
||||||
"name": "usim-adp-registration",
|
"name": "ps-adp-registration",
|
||||||
"type": "microsoft.insights/components",
|
"type": "microsoft.insights/components",
|
||||||
"location": "[parameters('resourceLocation')]",
|
"location": "[parameters('resourceLocation')]",
|
||||||
"properties": {},
|
"properties": {},
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
},
|
},
|
||||||
"resourceName": {
|
"resourceName": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"defaultValue": "usim-adp-registration",
|
"defaultValue": "ps-adp-registration",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"description": "Name of the main resource to be created by this template."
|
"description": "Name of the main resource to be created by this template."
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
"connectionId": "AzureWebJobsStorage"
|
"connectionId": "AzureWebJobsStorage"
|
||||||
},
|
},
|
||||||
"appInsights1": {
|
"appInsights1": {
|
||||||
"resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/microsoft.insights/components/usim-adp-registration",
|
"resourceId": "/subscriptions/[parameters('subscriptionId')]/resourceGroups/[parameters('resourceGroupName')]/providers/microsoft.insights/components/ps-adp-registration",
|
||||||
"type": "appInsights.azure",
|
"type": "appInsights.azure",
|
||||||
"connectionId": "APPLICATIONINSIGHTS_CONNECTION_STRING"
|
"connectionId": "APPLICATIONINSIGHTS_CONNECTION_STRING"
|
||||||
}
|
}
|
||||||
@@ -1,49 +1,23 @@
|
|||||||
{
|
{
|
||||||
// ── Connection Strings ───────────────────────────────────────────────────
|
|
||||||
// Override via docker-compose env var:
|
|
||||||
// ConnectionStrings__Sql=Server=10.10.99.212;Database=dbRegistration;...
|
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"Sql": "Server=10.10.99.212;Database=dbRegistration;User Id=appAdPlatformReg;Password=CHANGE_ME;TrustServerCertificate=True;"
|
"Sql": "Server=10.10.99.212;Database=dbRegistration;User Id=appAdPlatformReg;Password=REPLACE_ME;TrustServerCertificate=True;"
|
||||||
},
|
},
|
||||||
|
|
||||||
// ── Entra External ID (CIAM) ─────────────────────────────────────────────
|
|
||||||
// Tenant: Positive Spend Clients (cbf8b7d7-1e13-486d-b5b0-287ba79fdf0b)
|
|
||||||
// SPA App: AdPlatform Client SPA (c426967f-bfcc-46af-b4e5-d69dc01cbf75)
|
|
||||||
//
|
|
||||||
// This is the CLIENT-facing CIAM tenant — NOT the internal positivespend.com
|
|
||||||
// org tenant used by the Management/Admin console (f56a3c51).
|
|
||||||
//
|
|
||||||
// Tokens are issued by PositiveSpendClients.ciamlogin.com.
|
|
||||||
// Microsoft.Identity.Web validates issuer, audience, and signature automatically.
|
|
||||||
//
|
|
||||||
// Override via env vars (docker-compose .env):
|
|
||||||
// AzureAd__Instance=https://PositiveSpendClients.ciamlogin.com/
|
|
||||||
// AzureAd__TenantId=cbf8b7d7-1e13-486d-b5b0-287ba79fdf0b
|
|
||||||
// AzureAd__ClientId=c426967f-bfcc-46af-b4e5-d69dc01cbf75
|
|
||||||
"AzureAd": {
|
"AzureAd": {
|
||||||
"Instance": "https://PositiveSpendClients.ciamlogin.com/",
|
"Instance": "https://REPLACE_WITH_CIAM_SUBDOMAIN.ciamlogin.com/",
|
||||||
"TenantId": "cbf8b7d7-1e13-486d-b5b0-287ba79fdf0b",
|
"TenantId": "REPLACE_WITH_CIAM_TENANT_ID",
|
||||||
"ClientId": "c426967f-bfcc-46af-b4e5-d69dc01cbf75",
|
"ClientId": "REPLACE_WITH_CIAM_CLIENT_ID",
|
||||||
"Audience": "c426967f-bfcc-46af-b4e5-d69dc01cbf75"
|
"Audience": "REPLACE_WITH_CIAM_CLIENT_ID"
|
||||||
},
|
},
|
||||||
|
|
||||||
// ── CORS ─────────────────────────────────────────────────────────────────
|
|
||||||
// Comma-separated allowed origins.
|
|
||||||
// Override via env var: CORS__AllowedOrigins (already in docker-compose .env)
|
|
||||||
"CORS": {
|
"CORS": {
|
||||||
"AllowedOrigins": "https://client.positivespend.com,https://portal.positivespend.com"
|
"AllowedOrigins": "https://register.positivespend.com,https://client.positivespend.com,https://portal.positivespend.com"
|
||||||
},
|
},
|
||||||
|
|
||||||
// ── Admin API Key ────────────────────────────────────────────────────────
|
|
||||||
// Used by ApiKeyAuthFilter on admin endpoints (pending / item / reject / complete).
|
|
||||||
// Replaces Azure Functions AuthorizationLevel.Function in self-hosted mode.
|
|
||||||
// Must match Registration__FunctionKey in docker-compose .env.
|
|
||||||
// Override via env var: Registration__FunctionKey
|
|
||||||
"Registration": {
|
"Registration": {
|
||||||
"FunctionKey": ""
|
"FunctionKey": ""
|
||||||
},
|
},
|
||||||
|
|
||||||
// ── Logging ──────────────────────────────────────────────────────────────
|
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"Default": "Information",
|
"Default": "Information",
|
||||||
|
|||||||
@@ -18,7 +18,8 @@
|
|||||||
"routePrefix": "api",
|
"routePrefix": "api",
|
||||||
"cors": {
|
"cors": {
|
||||||
"allowedOrigins": [
|
"allowedOrigins": [
|
||||||
"https://adpregist.usimdev.com",
|
"https://register.positivespend.com",
|
||||||
|
"https://client.positivespend.com",
|
||||||
"http://localhost:3001"
|
"http://localhost:3001"
|
||||||
],
|
],
|
||||||
"allowedHeaders": [ "*" ],
|
"allowedHeaders": [ "*" ],
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"
|
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated"
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"Sql": "Server=usimdev.database.windows.net;Database=dbRegistration;User Id=appAdPlatformReg;Password=YOUR_PASSWORD_HERE;TrustServerCertificate=True;"
|
"Sql": "Server=10.10.99.212;Database=dbRegistration;User Id=appAdPlatformReg;Password=REPLACE_ME;TrustServerCertificate=True;"
|
||||||
},
|
},
|
||||||
"AzureAd": {
|
"AzureAd": {
|
||||||
"Instance": "https://usimclients.ciamlogin.com/",
|
"Instance": "https://REPLACE_WITH_CIAM_SUBDOMAIN.ciamlogin.com/",
|
||||||
"TenantId": "891f98f1-ed34-42a1-9b6c-28b0554d92c2",
|
"TenantId": "REPLACE_WITH_CIAM_TENANT_ID",
|
||||||
"ClientId": "154c9111-14a0-4c0f-8132-7bc68254a74e",
|
"ClientId": "REPLACE_WITH_CIAM_CLIENT_ID",
|
||||||
"Audience": "154c9111-14a0-4c0f-8132-7bc68254a74e"
|
"Audience": "REPLACE_WITH_CIAM_CLIENT_ID"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user