Single sign on Klipfolio单点登录在ASP.NET中的实现

Single sign on Klipfolio单点登录在ASP.NET中的实现,single-sign-on,Single Sign On,我需要一些帮助 我一直在尝试实现Klipfolio仪表板,但似乎我无法让它在办公室工作。我真的不知道为什么。当使用IE时,它不工作,但使用Chrome或Firefox时,它工作正常 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transiti

我需要一些帮助

我一直在尝试实现Klipfolio仪表板,但似乎我无法让它在办公室工作。我真的不知道为什么。当使用IE时,它不工作,但使用Chrome或Firefox时,它工作正常

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script src="Scripts/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            // initialize
            function initKlipfolioSSO(onSuccess, onError) {
                $.ajax({
                    url: "https://app.klipfolio.com/users/sso_auth",
                    xhrFields: {
                        withCredentials: true
                    },
                    crossDomain: true,
                    contentType: "application/json",
                    headers: {
                        "KF-SSO": "07U0rGlLbLevocLRIzHoChJdDTT7C7VlufgvU1ExrcrrBS7dwidFWaTr5l8ONrzUOw+Dq8wHFPVFjE5ycx5t4Uddi+RcDvS8WANWwH9IDKI=",
                        "KF-Company": "4b1a81c1d9005e1ac78f33aaac465e6f"
                    },
                    dataType: "json", 
                    success: function (data) {
                        onSuccess(data);
                    },

                    error: function (err) {
                        onError(data);
                    }

                })
            };


            $("#btnSubmit").click(function () {
                initKlipfolioSSO(
                    function (data) { document.location = "https://app.klipfolio.com/dashboard" },
                    function (data) { alert("Dashboard is temporarily unavailable."); }
                );
            })
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input style='margin-top: 10px' type='button' id='btnSubmit' value='Submit SSO Token' /></div>
    </form>
</body>
</html>

$(文档).ready(函数(){
//初始化
函数initKlipfolioSSO(onSuccess,onError){
$.ajax({
url:“https://app.klipfolio.com/users/sso_auth",
xhrFields:{
证书:正确
},
跨域:是的,
contentType:“应用程序/json”,
标题:{
“KF-SSO”:“07U0RGLLBLEVOCLRIZHOCHJDT7C7VLUFGVU1EXRCRRBS7DWIDFWATR5L8ONRZOUW+Dq8wHFPVFjE5ycx5t4Uddi+RCDVS8WANWH9IDKI=”,
“KF公司”:“4B1A81C1D9005E1AC78F33AAC465E6F”
},
数据类型:“json”,
成功:功能(数据){
onSuccess(数据);
},
错误:函数(err){
onError(数据);
}
})
};
$(“#btnsupmit”)。单击(函数(){
initKlipfolioSSO(
函数(数据){document.location=”https://app.klipfolio.com/dashboard" },
函数(数据){alert(“仪表板暂时不可用”);}
);
})
});

它如何“不起作用”?是否有任何错误消息?使用chrome或firefox成功。但是使用IE。。错误是“传输错误”