You may redirect user to login path with a redirect parameter, like this: https://sso.example.com/cas/login?service=https%3A%2F%2Fmyservice.eample.com%2Flogin%3Fredirect%3D%252Fsecure%252Fpage%252F
After login, cas will redirect user to https://myservice.eample.com/login?redirect=%2Fsecure%2Fpage%2F&ticket=ST-xxxxxxxxx Then you do what you usually do in login handler, just wirte session and set cookies etc, and after processing login, redirect your user to "/secure/page". We do this all the time, and it works fine. But you have to check your URL Encode carefully, notice that redirect param was URL encoded twice. 在 2018年11月14日星期三 UTC+8下午6:16:10,Charl Thiem写道: > > Hi > > It seems like a rooky question, but I can't seem to Google this... > We want to specify a returnUrl where CAS should foward to after a > successful login. > > E.g On our application, the user can browse anonymously until a certain > point. Lets say browsing for courses a student can apply for. At the course > info page the user selects to Apply for the course. At this point we'd like > to redirect to CAS to allow the student to login, but come back to this > page after signing in to complete the application wizzard. > > By default CAS redirects to our service path (home page). Is there a way > to override this? > > Regards / Groete > *Charl Thiem* > Senior Developer > IT Infrastructure Manager > > > > > ------------------------------ > See OpenCollab email disclaimer at > http://www.opencollab.co.za/email-disclaimer -- - 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 cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/5b16b574-4e39-43dc-bdcd-5d0bd1e37680%40apereo.org.