.net cas客户端Wiki指定将'路径'属性设置为服务器上适当的路径,应将结果设置为此。
<system.web>
<authentication mode="Forms">
<forms
loginUrl="https://server.example.com/cas/login"
timeout="30"
defaultUrl="~/Default.aspx"
cookieless="UseCookies"
slidingExpiration="true"
path="/ApplicationName/" />
</authentication>
<!-- Other system.web elements here -->
</system.web>
我的WebApplication名称是Intraweb。
它安装在d: webapps intraweb。
中在http://intraweb.mydomain.net上在LAN上运行
我对命名有些困惑。我应该将路径属性设置为什么?
<authentication mode="Forms">
<forms
...
path="D:WebAppsIntraWeb" />
</authentication>
或
<authentication mode="Forms">
<forms
...
path="/IntraWeb/" />
</authentication>
或
<authentication mode="Forms">
<forms
...
path="IntraWeb.MyDomain.net" />
</authentication>
似乎是合乎逻辑的答案是将路径属性设置为cas启用的Web应用程序root的服务器上的物理路径。
<authentication mode="Forms">
<forms
...
path="D:WebAppsIntraWeb" />
</authentication>
如果要使用同一CAS票证在WebApps文件夹下验证其他Web应用程序,请将路径属性设置为
<authentication mode="Forms">
<forms
...
path="D:WebApps" />
</authentication>