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