Pre-requisites: Google Developer Account Go to developers.google.com Open the api console From the drop down menu in the top left: Select Create Give the project a name Press Create Project The Project will be created and set to active Select API Access from the left menu Click the button marked Create an oauth 2.0 client ID Give the product a name and logo (whatever you want here) Select web application enter your site address click create client id You will need to edit settings here once you have enabled the drupal modules, so keep the window open. Also you will need the Client ID and the Client secret when configuring drupal. Configuring Drupal Required Modules Download Oauth module -> http://drupal.org/project/oauth Download connector module -> http://drupal.org/project/connector download oauthconnector module -> http://drupal.org/project/oauthconnector Http Client -> http://drupal.org/project/http_client Enable oauth_common http_client http_client_oauth connector (connector) oauth2_common (oauthconnector) oauthconnector (oauthconnector) enabling oauthconnector should enable all required modules Go to the Structure Menu http://yoursite.com/admin/structure Open the Oauth Connector page http://yoursite.com/admin/structure/oauthconnector Select Add provider from preset Pick Google from the dropdown menu Click Add Provider This will open the add provider screen Oauth Consumer Key => Client ID from the api console Oauth Consumer Secret => Client Secret from the api console Leave the rest as default Click Save and Proceed copy the path set under 'CALLBACK URL' This will look something like: oauth/authorized/2/1 Go back to your google api console and set the redirect uri to http://yoursite.com/[CALLBACK URI] So something like http://yoursite.com/oauth/authorized/2/1 You can then go and test the connection at http://yoursite.com/user Go to the connections tab and try to link your google account If you have issues, check the redirect uri set in the api console against the one in the callback url field, and your client id client secret Then try again If every thing works then go to the permissions page Check the Connect with Google permission for all users Display the Connector block on your login page More information you can get at https://www.drupal.org/node/1554782
© 2020.Zedangle. All Rights Reserved.