Redirect to arbitrary URL after logout

485 views
Skip to first unread message

John Rellis

unread,
Jun 30, 2016, 7:48:36 AM6/30/16
to CAS Community
Hey folks,

I see it is possible to set cas.logout.followServiceRedirects=true to redirect to a service while logging out


The above URL will bring me to http://localhost:8082/app/shiro-cas, however, I was hoping to logout and redirect to a different URL that is not a service, so maybe http://localhost:8082/app/somewhere-else

I tried testing it and it doesn't work unless "service" is actually defined as a service.

Is it possible to redirect somewhere arbitrarily? 

Thanks,
John

Robert Oschwald

unread,
Jun 30, 2016, 8:20:28 AM6/30/16
to cas-...@apereo.org

How to prevent that:

- Register the redirect url as a service
- check the redirect URL if the domain name is contained in any registered service (thats a custom extension you have to build on your own)
- Separate configuration where you register all urls to be allowed to be redirected to.


--
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+u...@apereo.org.
To post to this group, send email to cas-...@apereo.org.
Visit this group at https://groups.google.com/a/apereo.org/group/cas-user/.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/0b7bbdb7-69cb-4c30-ba49-c370e03226a7%40apereo.org.
For more options, visit https://groups.google.com/a/apereo.org/d/optout.

John Rellis

unread,
Jul 4, 2016, 10:19:59 AM7/4/16
to CAS Community
Thank you for the education and the suggestions!!!  I figured they needed to be defined as a service but just wanted to see if there were any other possibilities out there.
Reply all
Reply to author
Forward
0 new messages