Third-party login plug-in. NET edition XY. OAuth-CSharp, ecshop third-party login plug-in
XY. OAuth-CSharp
GitHub: XY. OAuth-CSharp
OSChina: XY. OAuth-CSharp
Third-party login plug-in. NET
Use
First, install "XY. OAuth" from NuGet"
Add the following configuration information to the "configuration" sub-node "etettings" under the root node of the project configuration file:
1 <! -- Third-party login configuration Start --> 2 <! -- Client ID --> 3 <add key = "Sina_Client_ID" value = ""/> 4 <! -- Key --> 5 <add key = "Sina_Client_Secret" value = ""/> 6 <! -- Return address --> 7 <add key = "Sina_Callback_URL" value = ""/> 8 9 <! -- Client ID --> 10 <add key = "QQ_Client_ID" value = ""/> 11 <! -- Key --> 12 <add key = "QQ_Client_Secret" value = ""/> 13 <! -- Return address --> 14 <add key = "QQ_Callback_URL" value = ""/> 15 16 <! -- Client ID --> 17 <add key = "Baidu_Client_ID" value = ""/> 18 <! -- API --> 19 <add key = "Baidu_Client_API" value = ""/> 20 <! -- Key --> 21 <add key = "Baidu_Client_Secret" value = ""/> 22 <! -- Return address --> 23 <add key = "Baidu_Callback_URL" value = ""/> 24 <! -- Configure End for third-party logon -->
For more information about the call method, see the test project.
Supported
The current version supports. NET3.5,. NET4.0,. NET4.5
Note:
XY. OAuth. Web in the project is a test project and is set up by ASP. NET MVC4.