@jerer I'm having the same problem you documented (Email Mismatch: Expecting Authorization for xxxx@xx.edu not <blank> ).
I'm trying to implement your solution but I can't get the plugins to 'rehydrate'. Any tips or can you post your compiled .phar file? I'm getting errors related to Psr/Http and http-factory not found.
...2 hours later 🤣
Got it working. I was never able to successfully build the plugins so I just decompiled the .phar file, made the edits that you suggested and recompiled:
'attr_username' => 'EmailAddress', // This was "mail" before
'attr_email' => 'EmailAddress', // This was "mail" before
Confirmed working / able to fetch mail now. Thank you for sharing your solution!