https://www.petervanderwoude.nl/post/enable-modern-authentication-for-exchange-online/
Enable modern authentication for Exchange Online