in reply to ADFS and EWS
It appears just from wading in this garbage for 5 minutes to me that you establish an oauth2 token via ADSF, then use that to connect to EWS. I assume you need to have exchange configured against ADFS already.
So it looks to me like a combination of various things that Perl supports via CPAN:
- Oauth2 (a valid token provided by ADFS being ultimately what allows you to access exchange)
- Active Directory/LDAP
Good luck, idk how you put up with this unnecessary and never ending complication of permutations.