Hi,

I'm not able to succesfully setup the ASP.NET client. 

What I would like to configure is the following setup:

Every page of my website needs authentification. If a user is not authenticated 
redirect to CASlogin page. That part works. But the redirect from cas to the 
same page does not work (I get a to many redirects error).

My web.config looks like:

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="casClientConfig"
             type="DotNetCasClient.Configuration.CasClientConfiguration, 
DotNetCasClient"/>
  </configSections>
  <appSettings/>
        <connectionStrings/>

  <casClientConfig
    casServerLoginUrl="https://10.1.56.158:8443/cas-server-webapp-3.4.6/login";
    casServerUrlPrefix="https://10.1.56.158:8443/cas-server-webapp-3.4.6/";
    serverName="http://10.1.57.24:81/";
    notAuthorizedUrl="~/NotAuthorized.aspx"
    cookiesRequiredUrl="~/CookiesRequired.aspx"
    redirectAfterValidation="true"
    renew="false"
    gateway="false" 
    singleSignOut="true"
    ticketValidatorName="Cas20"
    serviceTicketManager="CacheServiceTicketManager" />
  
        <system.web>

    <authentication mode="Forms">
      <forms
        loginUrl="https://10.1.56.158:8443/cas-server-webapp-3.4.6/login";
        timeout="30"
        defaultUrl="~/Default.aspx" 
        cookieless="UseCookies"
        slidingExpiration="true"
        path="/website2/" />
    </authentication>

    <authorization>
      <deny users="?" />
    </authorization>
    
                <compilation debug="false" targetFramework="4.0">
                </compilation>
                        
    <httpModules>
      <add name="DotNetCasClient" 
type="DotNetCasClient.CasAuthenticationModule,DotNetCasClient"/>
    </httpModules>
  </system.web>

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules>
      <remove name="DotNetCasClient"/>
      <add name="DotNetCasClient" 
type="DotNetCasClient.CasAuthenticationModule,DotNetCasClient"/>
    </modules>
  </system.webServer>
  
</configuration>
-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to