CAS 5.0.0 RC3 | Default service not working

Skip to first unread message

carlosrolivera

unread,
Nov 9, 2016, 9:02:52 AM11/9/16
to CAS Community
Hi everyone, I'm migrating from CAS 4 to CAS 5.0.0 RC3. The problem is when I access CAS without a service, I get the following Error:

"org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'viewLoginForm' of flow 'login'"

In the old version, I have something like:

<end-state id="viewGenericLoginSuccess" view="externalRedirect:#{flowScope.urlRedirectToMyService}"/>

Now, the login webflow has changed and I can't find the way of doing the same thing, which is redirect to a particular service when no service is defined. Reading in the webflow documentation I found the following:

"In the event that no service is submitted to CAS, you may specify a default service url to which CAS will redirect. Note that this default service, much like all other services, MUST be authorized and registered with CAS."

But I can't make it work, I just put the following line in the cas.properties:

cas.view.defaultRedirectUrl=http://myservice.com

To sum up, what I need is: when the user goes to http://mycasserverhost/cas (without a service), the url will have to end up looking like this: https://mycasserverhost/cas/login?TARGET=http://mydefaultservice

Thanks!
Reply all
Reply to author
Forward
0 new messages