Is there a load balancer involved? I see you have a mix of https and http in the configuration.
We had a similar issue with .Net. Our load balancer was not configured to redirect http to https. -Bryan On Tue, Mar 26, 2019 at 4:30 PM Pablo Vidaurri <[email protected]> wrote: > Have you found a solution for this? I'm using a java client also using > saml11 filter and I cant get my cas server to redirect back to my > application after login > > > > On Monday, May 7, 2018 at 9:12:34 AM UTC-5, Neha Gupta wrote: >> >> Dear All, >> >> I am trying to integrate CAS with ASP.NET application. >> Everything is working fine but CAS is not able to redirect to the >> destination service and showing its own logged in page. >> >> Final URL is: - https://idiv-dev1:8443/cas/login?TARGET= >> *http%3a%2f%2flocalhost%3a60397%2f* >> >> where in TARGET my service URL is defined where i want CAS to redirect . >> >> Following configuration i have done in "*web.config*" file: - >> >> *<casClientConfig * >> casServerLoginUrl="https://idiv-dev1:8443/cas/login" >> casServerUrlPrefix="https://idiv-dev1:8443/cas/" >> serverName="http://localhost:60397/" >> notAuthorizedUrl="~/NotAuthorized.aspx" >> redirectAfterValidation="true" >> renew="false" >> singleSignOut="true" >> ticketValidatorName="Saml11" >> serviceTicketManager="CacheServiceTicketManager" >> * />* >> >> * <authentication mode="Forms">* >> <forms name=".DotNetCasClientAuth" loginUrl=" >> https://idiv-dev1:8443/cas/login" cookieless="UseCookies" /> >> * </authentication>* >> >> Along with this configuration i have also mentioned in "*FilterConfig.cs*" >> below two lines: - >> >> filters.Add(new System.Web.Mvc.AuthorizeAttribute()); >> filters.Add(new RequireHttpsAttribute()); >> >> >> Please let me know where is the problem as i have no clue. >> >> PS: - I have registered the service with CAS and also below service is >> present which authorizes all services to pass through CAS: - >> { >> "@class" : "org.apereo.cas.services.RegexRegisteredService", >> "serviceId" : "*^(https|imaps|http)://.**", >> "name" : "Apereo", >> "theme" : "apereo", >> "id" : 10000002, >> "description" : "Apereo foundation sample service", >> "evaluationOrder" : 1 >> "accessStrategy" : { >> "@class" : >> "org.apereo.cas.services.DefaultRegisteredServiceAccessStrategy", >> "enabled" : true, >> "ssoEnabled" : true >> } >> } >> >> >> >> >> Regards >> Neha Gupta >> > -- > - Website: https://apereo.github.io/cas > - Gitter Chatroom: https://gitter.im/apereo/cas > - List Guidelines: https://goo.gl/1VRrw7 > - Contributions: https://goo.gl/mh7qDG > --- > 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]. > To view this discussion on the web visit > https://groups.google.com/a/apereo.org/d/msgid/cas-user/982757c8-ec4f-4625-a944-5700f7edaa63%40apereo.org > <https://groups.google.com/a/apereo.org/d/msgid/cas-user/982757c8-ec4f-4625-a944-5700f7edaa63%40apereo.org?utm_medium=email&utm_source=footer> > . > -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- 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]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAG9x2GWRH18BDF%2BpBnJFe6Pd1aeUbi4GuH1603pbTZukoodDwg%40mail.gmail.com.
