Skip to content

Instantly share code, notes, and snippets.

@jamescrowley
Created October 1, 2014 10:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamescrowley/fcb01ccbc76d168712ca to your computer and use it in GitHub Desktop.
Save jamescrowley/fcb01ccbc76d168712ca to your computer and use it in GitHub Desktop.
startup.cs
var google = new GoogleOAuth2AuthenticationOptions
{
ClientId = ConfigurationManager.AppSettings.Get("Google.ClientId"),
ClientSecret = ConfigurationManager.AppSettings.Get("Google.ClientSecret"),
CallbackPath = new PathString("/callback"),
AuthenticationType = "Google",
SignInAsAuthenticationType = signInAsType
};
app.UseGoogleAuthentication(google);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment