It is possible to login into Drupal using your Active Directory/Office 365 credentials. We would leverage the Active Directory where the Office 365 identities are present and configure the LDAP module with the Active Directory.
In case you are looking for auto-login into Drupal through AD credentials (in case of access is within the domain), we have options to support that requirement as well.