Friday 5 September 2014

steps for google api for Devise Rails

CREATING GOOGLE APP


Login as google user

and visit

https://code.google.com/apis/console/

this page will list all projects for your account

if no project is present this page shows create project button

click create project button

you will be redirected to your project page (here you have to select API Access tab)

under API Access tab you have to Create an OAuth 2.0 client ID

you have to give Product name and Home Page URL: http://u.edgepedia.in/

you can also select Product logo

*( Product name and Product logo selected above will be displayed to user at the time of Sign Up

from google and )

now click next

select

Application type (Web application)

under Your site or hostname click more options and enter following details

Authorized Redirect URIs

http://u.edgepedia.in/users/auth/google_oauth2/callback

*( Will redirect user to this URL after Authentication )

Authorized JavaScript Origins

http://u.edgepedia.in

and click Create Client Id

you will get Client ID for web applications

Client ID and Client secret mentioned here are used to access this app


======================
solution for devise google Error 403: Access Not Configured. Please use Google Developers Console to activate the API for your project

You must enable a couple API's (in new google console) for things to work as expected.
Go to https://console.developers.google.com and make sure under "APIs" that you have following APIs enabled:
  1. "Contacts API"
  2. "Google+ API"

2 comments: