q42:accounts-microsoft

v0.1.0Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

Accounts Microsoft meteor package

A login service for Microsoft accounts

Build Status

Getting started

Add the package to meteor

meteor add q42:accounts-microsoft

Basic usage

The usage is pretty much the same as all other account packages for meteor. It's inspired by the official Accounts Google meteor package. It goes a little bit something like this:

Meteor.loginWithMicrosoft({
    requestOfflineToken: true,
    // Permission scopes are found here: https://msdn.microsoft.com/en-us/library/hh243648.aspx
    requestPermissions: ['wl.basic']
}, function(error) {
    if (error) {
        console.error('Login failed:', error.reason || error);
    }
    else {
        console.log('Logged in!');
    }
});

References

OAuth package

Microsoft REST documentation