Cas .net client using gateway and landing page with sign-in button

On site load, we are able to make gateway call successfully (gateway flag).

We have sign button on landing page which redirect user to CAS logon (without 
gateway flag).  CAS logon works, but when cas .net client try to validate 
service ticket it encounter an error that Service Ticket url and site url does 
not match.  CAS .net client assume that we are using gateway flag and add 
gatewayResponse="true" to url which does not match CAS service ticket.  Did you 
run into similar problem?  Any help will be really appreciated.  We can modify 
the cas.net client code but there may be other better solution for it.


web.config
  <casClientConfig
    casServerLoginUrl="https://test:8443/login";
    casServerUrlPrefix="https://test:8443/";
    serverName="https://localhost:44300/";
    notAuthorizedUrl="~/NotAuthorized"
    cookiesRequiredUrl="~/CookiesRequired"
    redirectAfterValidation="true"
    renew="false"
    singleSignOut="true" gateway="true"
    ticketValidatorName="Cas20"
    proxyTicketManager=""
    
serviceTicketManager="DotNetCasClient.State.DBServiceTicketManager,DotNetCasClient"
 />

-- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.

Reply via email to