Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# OAuthLogin [![Build status](https://ci.appveyor.com/api/projects/status/i37i1sd16y31sa30?svg=true)](https://ci.appveyor.com/project/seven1986/oauthlogin-u3622) [![NuGet](https://img.shields.io/nuget/v/OAuthLogin.svg)](https://www.nuget.org/packages/OAuthLogin) [![GitHub license](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://raw.githubusercontent.com/seven1986/OAuthLogin/master/LICENSE)

[![Join the chat at https://gitter.im/OAuthLogin/Lobby](https://badges.gitter.im/OAuthLogin/Lobby.svg)](https://gitter.im/OAuthLogin/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)


Installation
-------------
Expand All @@ -14,7 +16,7 @@ PM> Install-Package OAuthLogin
Usage
------

��һ������Global.asax����΢����΢�š�QQ��facebook��client_id��client_secret
第一步:在Global.asax配置微博、微信、QQ、facebook的client_id、client_secret

```csharp
protected void Application_Start(object sender, EventArgs e)
Expand All @@ -29,7 +31,7 @@ protected void Application_Start(object sender, EventArgs e)
}
```

�ڶ���������Ŀ��Ŀ¼�ֱ��½�QQ.aspx��Wechat.aspx��Webo.aspx��Facebook.aspx�ļ�
第二步:在项目根目录分别新建QQ.aspxWechat.aspxWebo.aspxFacebook.aspx文件

##### QQ.aspx

Expand All @@ -40,7 +42,7 @@ protected void Application_Start(object sender, EventArgs e)

if (res != null && res.code == 0)
{
//�õ�������ݣ�Ȼ������Զ�����ת
//拿到结果数据,然后进行自定义跳转
//res.result

}
Expand All @@ -56,7 +58,7 @@ protected void Page_Load(object sender, EventArgs e)

if (res != null && res.code == 0)
{
//�õ�������ݣ�Ȼ������Զ�����ת
//拿到结果数据,然后进行自定义跳转
//res.result
}
}
Expand All @@ -71,7 +73,7 @@ protected void Page_Load(object sender, EventArgs e)

if (res != null && res.code == 0)
{
//�õ�������ݣ�Ȼ������Զ�����ת
//拿到结果数据,然后进行自定义跳转
//res.result
}
}
Expand All @@ -86,7 +88,7 @@ protected void Page_Load(object sender, EventArgs e)

if (res != null&& res.code==0)
{
//�õ�������ݣ�Ȼ������Զ�����ת
//拿到结果数据,然后进行自定义跳转
//res.result
}
}
Expand Down