<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    allen
    專注于java ee技術(shù),包括struts,jsf,webwork,spring,hibernate,ibatis
    posts - 7,  comments - 9,  trackbacks - 0

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    <%@ LANGUAGE="VBScript" %>
    </HEAD>

    <BODY>


    <%
    ?'Declare and assign CAS server variable
    ?Dim casServer
    ?casServer = "localhost:8443/cas"

    ?'Declare additional variables used for redirect
    ?Dim protocol, originatingURL, caseNetworkID

    ?'Determine the protocol for the originitating page
    ?if Request.ServerVariables("HTTPS") = "off" then
    ??protocol = "http"
    ?else
    ??protocol = "https"
    ?end if

    ?'Construct the originatingURL variable based on ServerVariables
    ?'originatingURL = protocol & "://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("URL")
    ?originatingURL = protocol & "://localhost"? & Request.ServerVariables("URL")

    ?'Check to see if the 'ticket' variable was passed via the query string
    ?if Request.QueryString("ticket") = "" then
    ??'If no, then redirect to CAS
    ??Response.Redirect("https://" & casServer & "/login?service=" & originatingURL)
    ?else
    ??'If yes, create MSXML object and attempt to validate the ticket
    ??Dim objSvrHTTP, ticket, casResponse, casResponseArray

    ??ticket = Request.QueryString("ticket")

    ??'Set objSvrHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP")
    ?
    ??Set objSvrHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.5.0")
    ??
    ??objSvrHTTP.open "GET", "https://" & casServer & "/validate?ticket="+ ticket +"&service=" & originatingURL, false
    ??????? objSvrHTTP.setOption(2) = 13056
    ??objSvrHTTP.send
    ??casResponse = objSvrHTTP.responseText
    ??casResponseArray = Split(casResponse, Chr(10), -1, 1)

    ??if casResponseArray(0) = "no" then
    ???Response.Redirect("https://" & casServer & "/login?service=" & originatingURL)
    ??else
    ???caseNetworkID = casResponseArray(1)
    ???Response.write caseNetworkID
    ??end if
    ?end if
    %>

    ?

    </BODY>
    </HTML>

    posted on 2006-11-15 09:07 robbin163 閱讀(718) 評(píng)論(1)  編輯  收藏

    FeedBack:
    # re: asp和sso結(jié)合
    2011-09-23 08:45 | 記憶有你
    這段是如何把sso和asp結(jié)合的,請(qǐng)告知QQ。 最近在看sso 但是網(wǎng)上的asp的sso比較少 看到您這段 卻沒(méi)有明白具體的含義,請(qǐng)即使告知,謝謝qq271882889  回復(fù)  更多評(píng)論
      

    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(3)

    隨筆分類

    隨筆檔案

    文章分類

    文章檔案

    搜索

    •  

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 亚洲精品少妇30p| 国产a级特黄的片子视频免费| 亚洲精品国产日韩无码AV永久免费网 | 亚洲国产日韩一区高清在线| 国产精品1024在线永久免费| 亚洲一本大道无码av天堂| 永久免费观看黄网站| 亚洲毛片不卡av在线播放一区| 亚洲日本天堂在线| 国产一级一片免费播放i| 美女被爆羞羞网站在免费观看| 国产成人精品免费直播| 视频一区在线免费观看| 亚洲国产精品国产自在在线| 久久最新免费视频| 亚洲人成色77777| 99久久久国产精品免费牛牛四川| 亚洲综合成人网在线观看| 在线看免费观看AV深夜影院| 国产色在线|亚洲| 免费又黄又硬又爽大片| 暖暖免费中文在线日本| 国产亚洲高清不卡在线观看| 91青青青国产在观免费影视| 国产成人精品日本亚洲18图| 麻豆成人精品国产免费| 九九视频高清视频免费观看 | 精品剧情v国产在免费线观看| 亚洲av成本人无码网站| 精品国产香蕉伊思人在线在线亚洲一区二区| ssswww日本免费网站片| 精品日韩亚洲AV无码一区二区三区| 成全视频在线观看免费高清动漫视频下载 | 亚洲精品视频在线看| 免费国产成人午夜在线观看| 亚洲日韩中文字幕| 亚洲毛片av日韩av无码 | 女人18毛片水真多免费看| 一级看片免费视频| 亚洲欧洲国产综合| 亚洲国产天堂久久综合|