日期:2014-05-20  浏览次数:20822 次

请问CAS SSO .net客户端怎么配置(急)
<?xml version="1.0"?>
<configuration>

<appSettings>
<!--中间部分是CAS需要用到的-->
<!---change CAS Url accordingly-->
<add key="CASURL" value="http://localhost:8080/cas-server-webapp-3.3.1"/>
<!--中间部分是CAS需要用到的-->
</appSettings>
<connectionStrings/>

<!--
            通过 <authentication> 节可以配置 ASP.NET 用来 
            识别进入用户的
            安全身份验证模式。 
        -->
<!--<authentication mode="Windows" />-->
<!--中间部分是CAS需要用到的-->
<!--Authentication mode configuration -->
<authentication mode="Forms">
<forms name="casAuth" defaultUrl="Default.aspx" loginUrl="Login.aspx"/>
</authentication>
<!-- Authorization configuration -->
<authorization>
<deny users="?"/>
</authorization>
<!--中间部分是CAS需要用到的-->
<!--
            如果在执行请求的过程中出现未处理的错误,
            则通过 <customErrors> 节可以配置相应的处理步骤。具体说来,
            开发人员通过该节可以配置
            要显示的 html 错误页
            以代替错误堆栈跟踪。

        -->
<customErrors mode="On" defaultRedirect="MyErrorPage.aspx">
<error statusCode="403" redirect="NoAccess.htm"/>
<error statusCode="404" redirect="FileNotFound.htm"/>
</customErrors>
<pages>
<!--中间部分是CAS需要用到的-->
<namespaces>
<add namespace="CAS.Web.Security"/>
</namespaces>
<!--中间部分是CAS需要用到的-->
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<!--中间部分是CAS需要用到的-->
<add name="CASAuthenticationV2" type="CAS.Web.Security.CASAuthenticationV2, CASAuthentication"/>
<!--中间部分是CAS需要用到的-->
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!-- 
        在 Internet 信息服务 7.0 下运行 ASP.NET AJAX 需要 system.webServer
        节。对早期版本的 IIS 来说则不需要此节。
    -->
<location path="ProxyCallback.aspx">
<system.web>