Created
October 6, 2013 02:05
-
-
Save ernestohs/6848514 to your computer and use it in GitHub Desktop.
Using the OAuth2Client form https://github.com/mj1856/DotNetOpenAuth.GoogleOAuth2/tree/master/DotNetOpenAuth.GoogleOAuth2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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