changing URL to positivespend
All checks were successful
Management / build-deploy (push) Successful in 8m9s
All checks were successful
Management / build-deploy (push) Successful in 8m9s
This commit is contained in:
BIN
Management/Management.zip
Normal file
BIN
Management/Management.zip
Normal file
Binary file not shown.
@@ -255,7 +255,7 @@ public sealed class ClientAuthMiddleware
|
||||
|
||||
var tenantId = _config["Auth:Staff:TenantId"];
|
||||
var clientId = _config["Auth:Staff:ClientId"];
|
||||
var instance = _config["Auth:Staff:Instance"] ?? "https://usimclients.ciamlogin.com/";
|
||||
var instance = _config["Auth:Staff:Instance"] ?? "https://login.microsoftonline.com/";
|
||||
|
||||
if (string.IsNullOrWhiteSpace(tenantId) || string.IsNullOrWhiteSpace(clientId))
|
||||
return false;
|
||||
|
||||
@@ -10,22 +10,26 @@
|
||||
"AllowDevBypass": false,
|
||||
|
||||
/*
|
||||
* STAFF IDENTITY — Entra External ID (dev) / Entra org tenant (prod)
|
||||
* STAFF IDENTITY - Microsoft Entra ID (positivespend tenant)
|
||||
*
|
||||
* PRODUCTION MIGRATION: update these three environment variables only.
|
||||
* No code changes required.
|
||||
* App registration: AdPlatform Management Staff API (af95fa13) in positivespend tenant f56a3c51.
|
||||
* The Tech SPA (846a3677) authenticates against this same tenant and
|
||||
* requests scope api://af95fa13-.../access_as_user.
|
||||
*
|
||||
* Auth__Staff__Instance → https://login.microsoftonline.com/
|
||||
* Auth__Staff__TenantId → new company org tenant ID
|
||||
* Auth__Staff__ClientId → staff app registration in org tenant
|
||||
* Management validates JWTs:
|
||||
* issuer = login.microsoftonline.com/f56a3c51/v2.0
|
||||
* audience = af95fa13 or api://af95fa13
|
||||
* roles = Staff.Admin | Staff.Tech
|
||||
*
|
||||
* DEV: CIAM tenant used as placeholder (staff/client login looks identical).
|
||||
* The API-level audience isolation is real regardless of tenant.
|
||||
* These are the correct defaults - also set as env vars on the container:
|
||||
* Auth__Staff__Instance = https://login.microsoftonline.com/
|
||||
* Auth__Staff__TenantId = f56a3c51-9b5c-4356-920f-b4dcf932a96b
|
||||
* Auth__Staff__ClientId = af95fa13-2ef4-4911-b137-7acc6a784cfa
|
||||
*/
|
||||
"Staff": {
|
||||
"Instance": "https://usimclients.ciamlogin.com/",
|
||||
"TenantId": "891f98f1-ed34-42a1-9b6c-28b0554d92c2",
|
||||
"ClientId": "STAFF_APP_CLIENT_ID"
|
||||
"Instance": "https://login.microsoftonline.com/",
|
||||
"TenantId": "f56a3c51-9b5c-4356-920f-b4dcf932a96b",
|
||||
"ClientId": "af95fa13-2ef4-4911-b137-7acc6a784cfa"
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user