The connection to Office 365 can use standard username and password credentials, or a service principal with certificate, or service principal with a client secret