connexion avec o365

This commit is contained in:
2025-08-12 16:14:44 +02:00
parent 871f166457
commit e1e4e81420
5 changed files with 119 additions and 7 deletions

12
project/src/AuthConfig.js Normal file
View File

@@ -0,0 +1,12 @@
// authConfig.js
export const msalConfig = {
auth: {
clientId: "4bb4cc24-bac3-427c-b02c-5d14fc67b561", // Application (client) ID dans Azure
authority: "https://login.microsoftonline.com/9840a2a0-6ae1-4688-b03d-d2ec291be0f9", // Directory (tenant) ID
redirectUri: "http://localhost:5173"
}
};
export const loginRequest = {
scopes: ["User.Read"] // Permet de lire le profil utilisateur
};