Recently I noticed that microsoft.name is a duplicated value of microsoft.displayName. Thus I doubt the necessity of line 51-56 in lib/Auth/Source/MicrosoftHybridAuth.php.
After some research, I found out the email and name value in token seems to be duplicate of microsoft.mail and microsoft.displayName. Plus, the original microsoft.mail field got overwritten in this way, so I think it's better to simply remove these lines.