Skip to content

Instantly share code, notes, and snippets.

@ernestohs
Created October 6, 2013 02:05
Show Gist options
  • Save ernestohs/6848514 to your computer and use it in GitHub Desktop.
Save ernestohs/6848514 to your computer and use it in GitHub Desktop.
// Setup OAuthClient for Google
if (!string.IsNullOrWhiteSpace(ConfigurationManager.AppSettings["GoogleAppId"]) && !string.IsNullOrWhiteSpace(ConfigurationManager.AppSettings["GoogleAppSecret"]))
{
OAuthWebSecurity.RegisterClient(new GoogleOAuth2Client(ConfigurationManager.AppSettings["GoogleAppId"], ConfigurationManager.AppSettings["GoogleAppSecret"]), "Google", extraData);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment