OAuth-localhost refused to connect error

Hi all, I am trying to login via my google account using Oauth, registered with google oauth provider gave the respective clientId,clientsecret and tried sign in via google after entering my gmail credentials,its shows 'localhost refused to connect' error.While registering with google oauth I have selected my application type as others,it didnt ask any callback url. Is it fine to proceed with this?
1 answers

You should setup your credentials not as other but as web application. This will ask for the callback url's