artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
684 stars 217 forks source link

redirect_uri_mismatch oauth google login #104

Open shamsme01 opened 9 years ago

shamsme01 commented 9 years ago

I am using the code for google consumer from the documentation. Created a controller and in the google uri redirect I have specified the url like the following: http://domainname/route

The route is calling the controller and the method loginwithGoogle as specified in the documentation but every time I am getting an error "redirect_uri_mismatch".

Can any one tell what I am doing wrong here?

nirmal783 commented 9 years ago

while creating app in google, you need to give same redirect URI as given in controller.