Ability to add Google Authentication
Any plans to support Google auth? Would be nice to support such thing.. If you have any tips on how to support it, please let me know!
Hi @mohamedmansour i just did a pull request adding that support. Possibly Brian can't work on this these days. If you need this patch you can check the diff on the pull request or just clone my fork and use the google-oauth branch.
Nice work, @cronopio! I'm going to see if I can't replace my node-oauth code from last night with this. :)
Thanks!!
I just test the thing using the next config
module.exports = function(app) {
MyUserModel.plugin(mongooseAuth, {
everymodule: {
everyauth: {
User: function(){
return app.set('db').usuario; // I'm using express
}
}
}
, google: {
everyauth: {
appId:'XXXXXXXXXXX.apps.googleusercontent.com'
, appSecret:'xxxxxxxxxxxxxxx'
, scope:'https://www.google.com/m8/feeds'
, redirectPath: '/'
}
}
});
}
Just adding my +1 for Brian adding @cronopio's google auth to the main repo.