diff --git a/Client-Admin/src/auth/authConfig.js b/Client-Admin/src/auth/authConfig.js index 9516bc6..c516072 100644 --- a/Client-Admin/src/auth/authConfig.js +++ b/Client-Admin/src/auth/authConfig.js @@ -1,22 +1,21 @@ // ─── Entra org tenant — staff only ─────────────────────────────────────────── -const TENANT_ID = '0be4c23a-6941-4bdb-b397-a4faf88de4b3'; +const TENANT_ID = 'f56a3c51-9b5c-4356-920f-b4dcf932a96b'; // positivespend tenant -// MediaPoint-Admin app registration clientId (Admin SPA — NOT the Graph API app) -// b0f29246... is the Graph API server app — replace this with the correct value -// from Entra portal → App Registrations → MediaPoint-Admin → Application (client) ID -const CLIENT_ID = 'b0f29246-91e7-4615-96db-5de9b6f8da2e'; // TODO: replace with MediaPoint-Admin clientId +// AdPlatform Admin SPA app registration — registered in positivespend tenant +// Portal → App Registrations → AdPlatform Admin SPA → Application (client) ID +const CLIENT_ID = '6873dee3-aff8-405d-9bc1-120c20794f98'; // TODO: replace after creating Admin SPA registration const AUTHORITY = `https://login.microsoftonline.com/${TENANT_ID}`; // ─── Management API resource ────────────────────────────────────────────────── -// This is the audience for access tokens sent to Management API. +// Audience for access tokens sent to Management API. // Scope requests this audience so tokens carry the `roles` claim. -export const MGMT_APP_ID = '4e4d69c3-558a-4a27-a689-17bd397175e5'; // MediaPoint-Management appId +export const MGMT_APP_ID = 'af95fa13-2ef4-4911-b137-7acc6a784cfa'; // AdPlatform Management Staff API export const MGMT_SCOPE = `api://${MGMT_APP_ID}/access_as_user`; // ─── URLs ───────────────────────────────────────────────────────────────────── -export const MANAGEMENT_URL = 'https://adpmgmt.usimdev.com'; -export const REGISTRATION_URL = 'https://adpregist.usimdev.com'; +export const MANAGEMENT_URL = 'https://mgmt.positivespend.com'; +export const REGISTRATION_URL = 'https://regapi.positivespend.com'; // ─── MSAL configuration ─────────────────────────────────────────────────────── export const msalConfig = {