Thank you for reply but what I want to say is that If I access http://www.casserver.com/logininstead of www.foo.com or www.bar.com for the first time. the value of request parameter service must be blank, or there is even no sush a request parameter, right? and If I login in successfully, I will see the "You have loged in" page instead of www.foo.com or www.bar.com. In this situation, I want to write an authentication handler to get the value of request parameter service, and if the user id and password are correct, do some redirecting URL work. So what I want to know is that how to write such an authentication handler.
2010/3/1 Pablo Mosquera Saenz <[email protected]> > Hi, I think that urlService do what you want. > > If you try to enter http://www.foo.com, your app redirects you to CAS and > the url should be something like > http://www.casserver.com/login?service=http://www.foo.com > > The parameter service is used to redirect to that url after the user logs > in. All users will be redirected to that url, so it doesn´t mind if it is > user-foo or user-bar. > > Hope this helps you > > Pablo Mosquera > > 2010/3/1 [email protected] <[email protected]> > >> Hi,guys: >> >> I have several legacy systems with different login information and they >> are not in the same domain. My CAS server is a stand-alone server and >> authenticate login information with jdbc-support >> (SearchModeSearchDatabaseAuthenticationHandler). I want to let the CAS's >> login page as the first page, after login, I want to redirect URL to the >> right system page according to the user-id that belongs to that system. How >> to do? >> For example: system foo has a user(user-foo), system bar has a >> user(user-bar), user-foo just belongs to system foo, user-bar just belongs >> to syste bar. System foo's URL is http://www.foo.com. System bar's URL is >> http://www.bar.com. CAS server's URL is https://www.casserver.com. If I >> access CAS server's URL directly, then the CAS login page will be displayed. >> After that, I login as user-foo successfully, then how to do can let CAS >> server redirect me to "http://www.foo.com", instead of " >> http://www.bar.com" automatically? >> Waiting for your help, Thank you very much! >> >> -- >> You are currently subscribed to [email protected] as: >> [email protected] >> >> To unsubscribe, change settings or access archives, see >> http://www.ja-sig.org/wiki/display/JSG/cas-user >> > > -- > You are currently subscribed to [email protected] as: > [email protected] > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- Yours , Lianfeng Tsai [email protected] -- You are currently subscribed to [email protected] as: [email protected] To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user
