2

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)

0

1 Answer 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

Sign up to request clarification or add additional context in comments.

1 Comment

Updating to the latest nuget packages solved my issue with a clean VS2017 project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.