From 44800c3dbed71ddbe360a06ade06410f14fc9c83 Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 9 Nov 2016 16:56:33 +0100 Subject: [PATCH] use userPrincipalName for nickname --- OAuth/ResourceOwner/AzureV2ResourceOwner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OAuth/ResourceOwner/AzureV2ResourceOwner.php b/OAuth/ResourceOwner/AzureV2ResourceOwner.php index acfb1f74e..407a72b60 100644 --- a/OAuth/ResourceOwner/AzureV2ResourceOwner.php +++ b/OAuth/ResourceOwner/AzureV2ResourceOwner.php @@ -31,7 +31,7 @@ class AzureV2ResourceOwner extends GenericOAuth2ResourceOwner protected $paths = array( 'identifier' => 'id', 'email' => 'mail', - 'nickname' => 'mail', + 'nickname' => 'userPrincipalName', 'realname' => 'displayName', 'firstName' => 'givenName', 'lastName' => 'surname'