From eaaae1931bca1915fb6e9a19abf98795d40370c3 Mon Sep 17 00:00:00 2001
From: Damien <damien.burel@maarch.org>
Date: Tue, 12 Jan 2021 14:17:42 +0100
Subject: [PATCH] FIX #14594 TIME 1:00 azure saml login

---
 src/core/controllers/AuthenticationController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/controllers/AuthenticationController.php b/src/core/controllers/AuthenticationController.php
index 8e229a74b1d..50216064b4a 100755
--- a/src/core/controllers/AuthenticationController.php
+++ b/src/core/controllers/AuthenticationController.php
@@ -662,7 +662,7 @@ class AuthenticationController
         ]);
 
         $attributes = $as->getAttributes();
-        $login = $attributes['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress'][0];
+        $login = $attributes['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name'][0];
         if (empty($login)) {
             return ['errors' => 'Authentication Failed : login not present in attributes'];
         }
-- 
GitLab