{"_id":"@bartvanvliet/passport-microsoft","_rev":"1-599eada4a1e21e65b703aeb60c206e81","name":"@bartvanvliet/passport-microsoft","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.6":{"name":"@bartvanvliet/passport-microsoft","version":"0.0.6","description":"Microsoft [Graph] authentication strategy for Passport.","keywords":["passport","microsoft","graph","graph.microsoft.io","oauth","oauth 2.0","auth","api","authentication","sean fisher","seafish.io"],"repository":{"type":"git","url":"git://github.com/kapulara/passport-microsoft.git"},"author":{"name":"Sean Fisher","email":"opensource@seafish.io","url":"https://seafish.io"},"licenses":[{"type":"MIT","url":"http://www.opensource.org/licenses/MIT"}],"main":"./lib/","dependencies":{"passport-oauth2":"1.2.0","pkginfo":"0.2.x","query-string":"^6.8.1"},"engines":{"node":">= 0.4.0"},"gitHead":"c06dcc83f7380a382732757728a06e4a9cf00b92","bugs":{"url":"https://github.com/kapulara/passport-microsoft/issues"},"homepage":"https://github.com/kapulara/passport-microsoft#readme","_id":"@bartvanvliet/passport-microsoft@0.0.6","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-2JkoZNuwQxB4ZvPcjdB1GmaN3R1JhonjPdGuKaQx3VRorVHv6+DAlGI/Gc4aoIzu+lg4WAU1KPmTHnVh3BBxSg==","shasum":"b21338d4a77c73a284f1ac06310f9aaa80ff2807","tarball":"https://registry.npmjs.org/@bartvanvliet/passport-microsoft/-/passport-microsoft-0.0.6.tgz","fileCount":18,"unpackedSize":20261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsE36CRA9TVsSAnZWagAAksYP/RHUjdT/6VvRP9rnfMV/\nGuIRGEWtGEO7oOM3q3wKX08Z9d1pmYeSAi4z0cXKYJYIEjV6NkDWuZGx53FW\nz7ULCWYP5yiArY0uJ5iH2xmA2uLLVDxeCjsv1VowqGags7RxnC7D475qfJPd\nnp46bnrLzfqsw0FDde2Ksa3cYNxu3KoN+OXmABkr10tFyyeq3a1D9Jl9a0se\nyERLKsjRQX0FEuipxqOsP38uAnAKwEODtSdQJb7vTNN0HV2OKCK35VWKADMA\nm++25ErD8YSx8tVbgWBFRE2Qw7DyFFVnJKXGr/SiS9rWaU8y8KTYF4uTKYcS\nYhrWa53DoxIIhZKEcDDbS5FtnGcUTdh8Nfq7QhpgiBfASlv1BGxMdx0+Kjhe\nGBdP9nzlwGB9Nmw3HW2nsRT976FbIwofiSxqtA+Sa3KKrQtStcH1kgOALSOk\nTdywejom8jXrn2izzJ4/jAiXftbnk7zOmwC2DI+93uNBkdJQRFIL9aTt+Veb\ndsFuVTp/s4ydSzoxSLg9gHugwXfOXdr1uVvXYCRG2tjrFQUIdm+DmzzNOQfT\nEgJP+E61HSja4wGIuu8EN7oZPNdcOn9dPTiIpGqjPRq7G4QppOVMiLifi4tO\nJ6SbY3c/I+p0KK/QXhIJrlUrVjIDy/ls0/X3YEofNmV7ikA8utPm1VJvwYLd\nOE5A\r\n=KVKc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGJO1EoisaMvNh/fyD9u1i4IZqrCZ4MlmiW4FgWls6iwIge+wGH4+R/8Ui3/1h4YMLr/wpFTfoSnQ9H3EGlI3ZS1I="}]},"maintainers":[{"name":"bartvanvliet","email":"bart.van.vliet@hotmail.com"}],"_npmUser":{"name":"bartvanvliet","email":"bart.van.vliet@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/passport-microsoft_0.0.6_1571835385653_0.08192016054325868"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-23T12:56:25.420Z","0.0.6":"2019-10-23T12:56:25.781Z","modified":"2022-04-04T17:44:55.667Z"},"maintainers":[{"name":"bartvanvliet","email":"bart.van.vliet@hotmail.com"}],"description":"Microsoft [Graph] authentication strategy for Passport.","homepage":"https://github.com/kapulara/passport-microsoft#readme","keywords":["passport","microsoft","graph","graph.microsoft.io","oauth","oauth 2.0","auth","api","authentication","sean fisher","seafish.io"],"repository":{"type":"git","url":"git://github.com/kapulara/passport-microsoft.git"},"author":{"name":"Sean Fisher","email":"opensource@seafish.io","url":"https://seafish.io"},"bugs":{"url":"https://github.com/kapulara/passport-microsoft/issues"},"readme":"# 🚧 Fork of [passport-microsoft](https://www.npmjs.com/package/passport-microsoft) with slight modifications 🚧 \n\n# Passport-microsoft\n\n[Passport](https://github.com/jaredhanson/passport) strategy for authenticating\nwith [Microsoft Graph](https://graph.microsoft.io/) using the OAuth 2.0 API.\n\nThis module lets you authenticate using Microsoft, in your Node.js applications.  \nBy plugging into Passport, Microsoft authentication can be easily and unobtrusively\nintegrated into any application or framework that supports [Connect](http://www.senchalabs.org/connect/)-style\nmiddleware, including [Express](http://expressjs.com/).\n\n## Install\n\nInstall via [npm](https://www.npmjs.com/package/passport-microsoft)\n\n    $ npm install @bartvanvliet/passport-microsoft\n\n## Usage\n\n#### Configure Strategy\n\nThe microsoft authentication strategy authenticates users using a microsoft account and OAuth 2.0 tokens.  The strategy requires a `verify` callback, which\naccepts these credentials and calls `done` providing a user, as well as\n`options` specifying a client ID, client secret, and callback URL.\n\nThe consumer key and secret are obtained by [creating an application](https://apps.dev.microsoft.com/#/appList) at\nMicrosoft's developer site.\n\n```js\n    var MicrosoftStrategy = require('passport-microsoft').Strategy;\n    passport.use(new MicrosoftStrategy({\n        clientID: 'applicationidfrommicrosoft',\n        clientSecret: 'applicationsecretfrommicrosoft',\n        callbackURL: \"http://localhost:3000/auth/microsoft/callback\"\n      },\n      function(accessToken, refreshToken, expiresIn, profile, done) {\n        User.findOrCreate({ userId: profile.id }, function (err, user) {\n          return done(err, user);\n        });\n      }\n    ));\n```\n\n#### Authenticate Requests\n\nUse `passport.authenticate()`, specifying the `'microsoft'` strategy, to\nauthenticate requests.\n\nFor example, as route middleware in an [Express](http://expressjs.com/)\napplication:\n\n```js\n    app.get('/auth/microsoft',\n      passport.authenticate('microsoft'));\n\n    app.get('/auth/microsoft/callback', \n      passport.authenticate('microsoft', { failureRedirect: '/login' }),\n      function(req, res) {\n        // Successful authentication, redirect home.\n        res.redirect('/');\n      });\n```\n\n## Credits\n\n  - [Sean Fisher](https://www.seafish.io) - [passport-microsoft on Github](https://github.com/seanfisher/passport-microsoft)\n  - [Sluggy Bear](http://github.com/slugbay) - Original [Microsoft OneDrive](https://github.com/slugbay/passport-onedrive) strategy, upon which this is based\n\n  Copyright (c) 2017 Sean Fisher <[seafish.io](https://www.seafish.io)>\n\n## Thanks\n\n  - [Jared Hanson](http://github.com/jaredhanson)\n\n## License\n\n  - [The MIT License](http://opensource.org/licenses/MIT)\n","readmeFilename":"README.md"}