修改部分文件结构,完善第三方登陆功能

This commit is contained in:
yubaolee
2016-07-12 12:28:54 +08:00
parent 994ab81ebb
commit 5f08a59f27
45 changed files with 10078 additions and 246 deletions

View File

@@ -1,11 +1,26 @@
using System.Web.Http;
// ***********************************************************************
// Assembly : OpenAuth.WebApi
// Author : yubaolee
// Created : 07-11-2016
//
// Last Modified By : yubaolee
// Last Modified On : 07-11-2016
// Contact :
// File: CheckController.cs
// ***********************************************************************
using System.Web.Mvc;
using Infrastructure;
using OpenAuth.App;
using OpenAuth.WebApi.Areas.SSO.Models.Services;
using OpenAuth.App.SSO;
namespace OpenAuth.WebApi.Areas.SSO.Controllers
{
/// <summary>
/// sso验证
/// <para>其他站点通过后台Post来认证</para>
/// <para>或使用静态类OpenAuth.App.SSO.AuthUtil访问</para>
/// </summary>
public class CheckController : Controller
{
private LoginApp _app;
@@ -34,5 +49,11 @@ namespace OpenAuth.WebApi.Areas.SSO.Controllers
return string.Empty;
}
[HttpPost]
public string Login(PassportLoginRequest request)
{
return JsonHelper.Instance.Serialize(SSOAuthUtil.Parse(request));
}
}
}