I am trying to add a login layer using CakeDC/users plugin using linkedin and google. The linkedin login is working fine, but I am not able to figure out google login. Followed everything in the tutorial login with google oauth
I am getting a code parameter in url returned from google/auth but the value of a parameter authuser is returned as 0.
On developers.google site I found that if code parameter is being returned the app is authenticated.
No user is being added to the users table as well as no change takes place in social_accounts table as well and a flash message is displayed as 'You are not authorized to access that location.'