nategeier/chack — pull request #4 by nackjicholson (2013-12-13 05:55:28+00:00)
Title: An alternative way of authenticating with google plus.

Because the google plus api really is our data store from which the
LoginController is pulling, I'm not sure having a /models/Login.js is
necessary. Also, generating models with sails also automatically creates
a mongodb collection by the same name, and we're not storing anything in
it. Although, concievable it could be the place where we could store the
oauth tokens, that's why for now I left the Login model.

Check out these changes, let me know what you think, let's not hit merge on it though until we talk about it some weekend. I was just looking at it, and thought this was another way to get it done.

Also, because I never had access to the Google Api connection you made, I made another one and replaced the information in clients.js. I made you a co-owner of that api account and you should get a gmail about it.

Steps to test that it works:

1. Go to http://localhost:1337/login/landing
2. Hit the login button
3. Allow our app access to g+
4. When you're redirected back to /login/authenticate you should see a big JSON blob of your profile data.