'WEB API Google Authentication access denied

I am trying to use google authentication API to have a google log-in on my web API project. Created the OAuth

enter image description here

and I enabled the Google+ API

enter image description here

added the Client ID and Client Secret on my Startup.Auth

app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions()
        {
            ClientId = "497652290327-gd5h0lrheuqcrtccp2c4rqi8dt5vpfb8.apps.googleusercontent.com",
            ClientSecret = "sPGGSo2d7VZX7YnRNGmCPQDv"
        });

but when I try to log in the URI dispalys

http://localhost:54388/#error=access_denied

It consued me because I followed every steps from the tutorial of kudvenkat but still encountered this error. Did I do something wrong

Note that the credentials that I am using on this google log in does not exist on my database (if that matters)



Solution 1:[1]

Ensure that you have the lastest OWin / FacebookAuth Nuget packages and that your application has a valid connection string to a SQL database with migrations applied if using code-first. Also check that the clientID & secret are correct, on the google apis console it should show some traffic on the client app

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dunisani Matt