diff --git a/src/core/controllers/AuthenticationController.php b/src/core/controllers/AuthenticationController.php
index 8e229a74b1dd64afb587484d36d221ca44cce66c..50216064b4a46836a0b4de54c853abf29a4f0083 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'];
         }