You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Web;
using BP.DA;
using BP.Sys;
using BP.Web;
using BP.Port;
using BP.En;
using BP.WF;
using BP.WF.Template;
namespace BP.WF.HttpHandler
{
/// <summary>
/// 页面功能实体
/// </summary>
public class WF_SSO : BP.WF.HttpHandler.DirectoryPageBase
{
/// <summary>
/// 构造函数
/// </summary>
public WF_SSO()
{
}
#region 界面 .
public string SSO_Init()
{
if (WebUser.No == null)
{
return "未登陆";
}
return "info@已经登陆.";
}
public string SSO_Callback()
{
string no = this.GetRequestVal("Token");
string apiUrl = "http:/xxxx?Token="+no; //对方的token解析服务器.
string strs = BP.Tools.PubGlo.HttpPostConnect(apiUrl, "", "POST");
//获得用户名.
string a = "xxx";
//BP.WF.Dev2Interface.Port_Login(userNo);
return "url@Home";
}
#endregion 界面方法.
}
}