{"repo":"seanfisher/passport-microsoft","free":true,"listed":false,"github":"https://github.com/seanfisher/passport-microsoft","clone":"git clone https://github.com/seanfisher/passport-microsoft.git","description":"An Authentication strategy for passport.js that uses the Microsoft Graph API","language":"JavaScript","stars":46,"topics":["passportjs","microsoft-graph","authentication","passport","nodejs"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Passport-microsoft Passport strategy for authenticating with Microsoft Graph using the OAuth 2.0 API. This module lets you authenticate using Microsoft, in your Node.js applications. By plugging into Passport, Microsoft authentication can be easily and unobtrusively integrated into any application or framework that supports Connect-style middleware, including Express. Install Install via npm $ npm install passport-microsoft Usage Configure Strategy The Microsoft authentication strategy authenticates users using a Microsoft account and OAuth 2.0 tokens. The strategy requires a verify callback, which accepts these credentials and calls done providing a user, as well as options specifying a client ID, client secret, and callback URL. The consumer key and secret are obtained by creating an application at Microsoft's developer site. Authenticate Requests Use passport.authenticate() , specifying the 'microsoft' strategy, to authenticate requests. For example, as route middleware in an Express application: Examples For a complete, working example, refer to the login example. Credits - Sean Fisher - passport-microsoft on Github - Sluggy Bear - Original Microsoft OneDrive strategy, upon which this is based Copyright (c) 2022 Sean Fisher Thanks - Jared Hanson License - The MIT License","default_branch":null,"files":null,"tree":[],"storefront":"/r/seanfisher","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/seanfisher/passport-microsoft/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}