mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-22 12:09:19 +08:00
修改部分文件结构,完善第三方登陆功能
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user