Created
October 4, 2013 04:33
-
-
Save gcsfred/6820973 to your computer and use it in GitHub Desktop.
AuthConfig.cs no projeto TesteSimpleMembershipEmpty
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.Web.WebPages.OAuth; | |
using WebMatrix.WebData; | |
namespace TesteSimpleMembershipEmpty | |
{ | |
public static class AuthConfig | |
{ | |
public static void RegisterAuth() | |
{ | |
// Para permitir que os usuários deste site façam logon em suas contas a partir de outros sites, como Microsoft, Facebook e Twitter, | |
// é necessário atualizar este site. Para obter mais informações, acesse http://go.microsoft.com/fwlink/?LinkID=252166 | |
//OAuthWebSecurity.RegisterMicrosoftClient( | |
// clientId: "", | |
// clientSecret: ""); | |
OAuthWebSecurity.RegisterTwitterClient( | |
consumerKey: "XXXXX", | |
consumerSecret: "YYYYY"); | |
//OAuthWebSecurity.RegisterFacebookClient( | |
// appId: "", | |
// appSecret: ""); | |
//OAuthWebSecurity.RegisterGoogleClient(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment