From c2973ddb5eb6eab905a2142f8b1a0993ed83a2ca Mon Sep 17 00:00:00 2001 From: sumedh Date: Thu, 17 Apr 2025 16:32:53 +0530 Subject: [PATCH] appid added --- src/views/pages/auth/MsalConfig.js | 33 ++++++++++++++---------------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/src/views/pages/auth/MsalConfig.js b/src/views/pages/auth/MsalConfig.js index 41888d8..19beaee 100644 --- a/src/views/pages/auth/MsalConfig.js +++ b/src/views/pages/auth/MsalConfig.js @@ -1,21 +1,18 @@ import { PublicClientApplication } from '@azure/msal-browser'; +export const msalInstance = new PublicClientApplication({ + auth: { + clientId: '1ddbd871-9544-4a31-97a4-2968ce08e49a', //'d3fee0e3-49e0-4910-b0b4-805bfbd5488a', + authority: 'https://login.microsoftonline.com/e0793d39-0939-496d-b129-198edd916feb/', //'https://login.microsoftonline.com/9dc4721e-4d54-4c40-a681-1dd740292901/', // + redirectUri: 'http://localhost:5173/auth/callback', // or your deployed URL + navigateToLoginRequestUrl: false + }, + cache: { + cacheLocation: 'localStorage', + storeAuthStateInCookie: false + } +}); - - -export const msalInstance = new PublicClientApplication({ - auth: { - clientId: '1ddbd871-9544-4a31-97a4-2968ce08e49a', - authority: "https://login.microsoftonline.com/e0793d39-0939-496d-b129-198edd916feb/", - redirectUri: "http://localhost:5173/auth/callback", // or your deployed URL - navigateToLoginRequestUrl: false, - }, - cache: { - cacheLocation: "localStorage", - storeAuthStateInCookie: false, - } -}) - /* export const msalInstance = new PublicClientApplication({ auth: { @@ -30,6 +27,6 @@ export const msalInstance = new PublicClientApplication({ } }) */ -export const msalrequest = { - scopes: ["User.Read"], - } +export const msalrequest = { + scopes: ['1ddbd871-9544-4a31-97a4-2968ce08e49a/.default'] //['api://d3fee0e3-49e0-4910-b0b4-805bfbd5488a/access_as_user'] +};