Git_Ceshi 测试分支创建与合并

AuthConfig.cs 1.1KB

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using Microsoft.AspNet.Membership.OpenAuth;
  6. namespace WebSite
  7. {
  8. public static class AuthConfig
  9. {
  10. public static void RegisterOpenAuth()
  11. {
  12. // 请参见 http://go.microsoft.com/fwlink/?LinkId=252803,以详细了解如何将此 ASP.NET
  13. // 应用程序设置为支持通过外部服务登录。
  14. //OpenAuth.AuthenticationClients.AddTwitter(
  15. // consumerKey: "你的 Twitter 使用者密钥",
  16. // consumerSecret: "你的 Twitter 使用者密码");
  17. //OpenAuth.AuthenticationClients.AddFacebook(
  18. // appId: "你的 Facebook 应用程序 ID",
  19. // appSecret: "你的 Facebook 应用程序密码");
  20. //OpenAuth.AuthenticationClients.AddMicrosoft(
  21. // clientId: "你的 Microsoft 帐户客户端 ID",
  22. // clientSecret: "你的 Microsoft 帐户客户端密码");
  23. //OpenAuth.AuthenticationClients.AddGoogle();
  24. }
  25. }
  26. }