Skip to content

gwhobbs/meteor-microsoft2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Microsoft meteor package

An implementation of the Microsoft OAuth flow using the v2.0 authentication endpoint preview

Build Status

Getting started

Add the package to meteor by running.

meteor add ghobbs:microsoft2

Why v2.0?

v2.0 is in preview right now, and it only works with a handful of APIs. However, the v2.0 API works with the super-useful Graph and Outlook APIs, and provides a single interface for servicing work, school and personal Microsoft accounts. If you want to plug into Outlook and reach the most users, the v2.0 API might be your best bet, even though it is in preview (see references).

Basic usage

The usage is pretty much the same as all other OAuth flow implementations for meteor. It's almost completely copied from Q42's package for authenticating with the v1.0 API, which was inspired by the official Google meteor package. Basically you can use:

var callback = Accounts.oauth.credentialRequestCompleteHandler(callback);
Microsoft.requestCredential(options, callback);

References

Original Microsoft endpoint package

Microsoft REST documentation

About

An implementation of the Microsoft OAuth flow using the v2.0 authentication endpoint preview

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.4%
  • HTML 5.6%