MikroWizard.mikrofront/src/app/auth/msal-config.ts

19 lines
654 B
TypeScript
Raw Normal View History

2025-06-30 22:08:02 +05:30
import { Configuration, PopupRequest } from "@azure/msal-browser";
// MSAL configuration
export const msalConfig: Configuration = {
auth: {
clientId: "fdbc76a1-2553-4efb-871f-56afdd3dd894", // Replace with your Azure AD application client ID
authority: "https://login.microsoftonline.com/common",
redirectUri: window.location.origin,
},
cache: {
cacheLocation: "sessionStorage",
storeAuthStateInCookie: false,
}
};
// Add here scopes for id token to be used at MS Identity Platform endpoints.
export const loginRequest: PopupRequest = {
scopes: ["User.Read", "profile", "email", "openid"]
};