This Drupal module enables SharePoint users to create an account on the Drupal site and log into it.
A developer can build a Drupal app and integrate it into SharePoint Online via the Office 365 market place as a provider hosted app.
Published on GitHub: https://github.com/ErikWegner/SharePoint-Drupal-Login
Some hints on the app development can be found in this tutorial and in this blog.