{"_id":"apostrophe-google-login","_rev":"61-e43fccf4be0ed146949574dfa5a96bdb","name":"apostrophe-google-login","dist-tags":{"latest":"0.4.1"},"versions":{"0.4.0":{"name":"apostrophe-google-login","version":"0.4.0","keywords":["apostrophe","google","gmail","login"],"author":{"name":"p'unk avenue llc"},"license":"MIT","_id":"apostrophe-google-login@0.4.0","maintainers":[{"name":"boutell","email":"boutell@boutell.com"}],"homepage":"https://github.com/punkave/apostrophe-google-login","bugs":{"url":"https://github.com/punkave/apostrophe-google-login/issues"},"dist":{"shasum":"10ac3c0e6f210a0cc23e06a05966c9168f73a6ca","tarball":"https://registry.npmjs.org/apostrophe-google-login/-/apostrophe-google-login-0.4.0.tgz","integrity":"sha512-g51f91SgxDoKZp3iLgqEUcJM0dZ7EKbHTvaliTHrt54dlUmrmyT6E8BKxhWffzfk5HdgoUR4PFzD4Jf0eqma+Q==","signatures":[{"sig":"MEUCIEBkjXOV0Q1yZu1BNsMnhjLIbAbt7FvIaZyK/6GUOqicAiEA0tqtkY7zwO8X2rF2oLK10uc2uEv3p7P0dna0lb5NBXw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"10ac3c0e6f210a0cc23e06a05966c9168f73a6ca","gitHead":"0801251892e18424c95ed728d20c2b63ef6174fd","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/apostrophe-google-login.git","type":"git"},"_npmVersion":"1.4.24","description":"google login for apostrophe sites","directories":{},"dependencies":{"passport-google-oauth":"^0.1.5"}},"0.4.1":{"name":"apostrophe-google-login","version":"0.4.1","keywords":["apostrophe","google","gmail","login"],"author":{"name":"p'unk avenue llc"},"license":"MIT","_id":"apostrophe-google-login@0.4.1","maintainers":[{"name":"boutell","email":"boutell@boutell.com"},{"name":"benirose","email":"ben@punkave.com"},{"name":"kylestetz","email":"kylestetz@gmail.com"},{"name":"colpanik","email":"kerry@punkave.com"},{"name":"jsumnersmith","email":"joel@punkave.com"},{"name":"alexgilbert","email":"alex@punkave.com"},{"name":"stuartromanek","email":"stuart@punkave.com"},{"name":"livhaas","email":"olivia@punkave.com"},{"name":"mcoppola","email":"coppola@punkave.com"},{"name":"suhmantha1","email":"sam@punkave.com"},{"name":"jimmyh","email":"jimmy@punkave.com"},{"name":"joshuatrii","email":"jan@joshuatrii.com"}],"homepage":"https://github.com/punkave/apostrophe-google-login","bugs":{"url":"https://github.com/punkave/apostrophe-google-login/issues"},"dist":{"shasum":"fcbbdf126977d94842d666aee006de267a033078","tarball":"https://registry.npmjs.org/apostrophe-google-login/-/apostrophe-google-login-0.4.1.tgz","integrity":"sha512-8RETFqgT+Ims1o4EImwhzPbiZ193YXtQzQY2+HdhImBQ20wS4qvWc+NCcMRykvNObKb8gG/SoEeaRuHv0vbyow==","signatures":[{"sig":"MEYCIQD2aKjvfU4z8DzzJehpdED+qP7Ch0MadMGN1N+hdCIjXgIhAMqcVLQTjtMQBNo7jv8eQh0y7gigiDqhqRm2XVyfBGOS","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"fcbbdf126977d94842d666aee006de267a033078","gitHead":"dbe20c87e636ce6daad38b9cb2f1160af1bc0d3e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"boutell","email":"boutell@boutell.com"},"repository":{"url":"https://github.com/punkave/apostrophe-google-login.git","type":"git"},"_npmVersion":"2.6.1","description":"google login for apostrophe sites","directories":{},"_nodeVersion":"0.12.7","dependencies":{"passport-google-oauth":"^0.1.5"}}},"time":{"created":"2014-12-12T20:04:13.311Z","modified":"2026-01-26T19:10:24.060Z","0.4.0":"2014-12-12T20:04:13.311Z","0.4.1":"2015-07-23T17:46:04.985Z"},"bugs":{"url":"https://github.com/punkave/apostrophe-google-login/issues"},"author":{"name":"p'unk avenue llc"},"license":"MIT","homepage":"https://github.com/punkave/apostrophe-google-login","keywords":["apostrophe","google","gmail","login"],"repository":{"url":"https://github.com/punkave/apostrophe-google-login.git","type":"git"},"description":"google login for apostrophe sites","maintainers":[{"email":"alex@apostrophecms.com","name":"alexgilbert"},{"email":"tom@apostrophecms.com","name":"boutell"},{"email":"stuart+npm@apostrophecms.com","name":"romanek"},{"email":"robert.means1969+apostrophecms@gmail.com","name":"bodonkey"},{"email":"kerry@punkave.com","name":"colpanik"},{"email":"stuart@punkave.com","name":"stuartromanek"},{"email":"austin.starin@gmail.com","name":"austinstarin"},{"email":"ajchappelle@gmail.com","name":"arti5m"},{"email":"grdunn@gmail.com","name":"grdunn"},{"email":"bgantick@gmail.com","name":"bgantick"},{"email":"abea@mailbox.org","name":"alexbea"},{"email":"matthew.mance@gmail.com","name":"mtthwmnc"}],"readme":"# apostrophe-google-login\n\nThis module allows users to log into your [Apostrophe site](http://apostrophenow.org) via their Google account, as an optional alternative to using their password.\n\nThere must be an existing user on the site with the same email address as the Google account.\n\n## Installation\n\nThis module also requires that you install the `passport` module globally, so that we can be sure the same instance of `passport` is seen by both Apostrophe's standard login and `apostrophe-google-login`.\n\n```\nnpm install --save apostrophe-google-login\nnpm install --save passport\n```\n\n## Configuration\n\nFirst, you must require `passport` in `app.js`:\n\n```javascript\nvar passport = require('passport');\n```\n\nSecond, you must pass `passport` to `apostrophe-site`:\n\n```javascript\nvar site = require('apostrophe-site')({\n  passport: passport,\n  // ... The rest of your site's configuration ...\n});\n```\n\nThird, you must configure the `apostrophe-google-login` module in `app.js`, along with the other modules of your project:\n\n```javascript\n  modules: {\n    \"apostrophe-google-login\": {\n\n      // Use the Google Developers Console to obtain these for\n      // YOUR project:\n      // https://console.developers.google.com/project\n\n      id: 'GOOGLE_CLIENT_ID',\n      secret: 'GOOGLE_CLIENT_SECRET',\n\n      // Make sure you pass in passport\n      passport: passport,\n\n      // This will probably be http://localhost:3000 during development.\n      // It must be the base URL of your site as seen in the browser\n      baseUrl: 'http://example.com',\n\n      // Where to redirect the user if Google login fails, or they\n      // have a gmail account but it is not associated with your site.\n      // Sending them to your login page is a good choice. You might\n      // override it with a suitable error message in this case.\n      failureRedirect: '/login?query=googleFailure=1'\n    },\n    // ... other modules ...\n  }\n```\n\nNote: you may want to use `data/local.js` to merge different settings on your production server, so you can continue to test gmail login in development as well. That looks like this:\n\n```javascript\n// In data/local.js\nmodule.exports = {\n  // Other settings, then...\n  modules: {\n    'apostrophe-google-login': {\n      id: 'myid',\n      secret: 'mysecret',\n      baseUrl: 'http://my.production.site.com'\n    }\n  }\n};\n```\n\n## Usage\n\nTo log a user in via Google, just make a link to `/apos-google-login` on your site.\n\nThat's all there is to it! The user will be asked to give permission the first time. After that the link works immediately.\n\n## Stability\n\nThis module currently works with both Apostrophe 0.4 and Apostrophe 0.5. If that changes, we will continue to tag 0.4 releases to maintain support for projects that use this module on 0.4 at tis current level.\n\n## Changelog\n\n### 0.4.1\n\nEnsure users are not in the trash before allowing them to log in.\nApostrophe's deserializer also catches this now, but just to be\ndoubly safe.\n\n","readmeFilename":"README.md"}