Skip to content

Instantly share code, notes, and snippets.

@gcsfred
Created October 4, 2013 04:33
Show Gist options
  • Save gcsfred/6820973 to your computer and use it in GitHub Desktop.
Save gcsfred/6820973 to your computer and use it in GitHub Desktop.
AuthConfig.cs no projeto TesteSimpleMembershipEmpty
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