mirror of
https://github.com/MikroWizard/mikrofront.git
synced 2025-07-31 00:04:36 +02:00
19 lines
No EOL
654 B
TypeScript
19 lines
No EOL
654 B
TypeScript
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"]
|
|
};
|