OneDrive (Microsoft Account) OAuth2 login service for use with Meteor Auth
This login service depends on the bleeding edge changes within the Meteor Auth branch. Only compatable with Meteor > 0.9.2
- oauth2
- oauth
- http
meteor add accounts-onedrive
- Register the app on Microsoft Developers.
- Read the 'Meteor.loginWith<ExternalService>' section of the Meteor docs and make sure you set up your config and secret correctly.
- Call
Meteor.loginWithOnedrive();
Due to Microsofts strict policies on authentication redirects, this app can not be tested on localhost. The redirect url must be set to a real domain. One workaround is to edit the host file on your machine to make localhost look like a real domain (localhostsite.com/mysite)
- Shamelessly based upon Google OAuth2 login service
MIT