Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Google external provider not working #320

Closed
mikethedarv opened this issue Aug 29, 2014 · 5 comments
Closed

Google external provider not working #320

mikethedarv opened this issue Aug 29, 2014 · 5 comments
Assignees
Labels

Comments

@mikethedarv
Copy link

I cannot get google's OAuth working for sign in. It issues the challenge and directs me to Google's login/authorization screen. After I accept, it brings me back to the login view with an error "Invalid Account". After looking in the source, I think the external cookie is not being set. I've written an action that tries to access the cookie 'Constants.ExternalAuthenticationType' and the value is null.

The ConfigureAdditionalIdentityProviders looks like:

var google = new GoogleOAuth2AuthenticationOptions
{
AuthenticationType = "Google",
SignInAsAuthenticationType = signInAsType,
ClientId = configuration.ClientId,
ClientSecret = configuration.ClientSecret
};

app.UseGoogleAuthentication(google);

@brockallen
Copy link
Member

Ok, thanks. I'll look into it when I return from travel.

@stevenrobertscrew
Copy link

I can help out on this one. You have to make sure that the Google+ API is enabled on the Google side. Once I did that the problem was resolved.

@brockallen
Copy link
Member

I guess that's a good point -- I'd suggest building a standalone app that uses the same account info and callback to ensure the google side is configured correctly. Once you have that confirmed, then switch IdSvr in.

@brockallen
Copy link
Member

Progress?

@mikethedarv
Copy link
Author

Sorry for the delay, that did it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants