Hi,

I would modify the CAS server in two places :
- at authentication, fetch the siteurl when authenting users and save it as 
an authentication parameter : might be done in a specific authentication 
handler or via an appropriate metadatapopulator
- change the webflow to rely on a custom redirect action which uses the 
siteurl for redirection (and not the provided service).

Best regards,
Jérôme



Le lundi 8 juillet 2013 09:30:18 UTC+2, Shibaram Sahoo a écrit :
>
> I want to achieve this: 
> Users once authenticated, they will be redirected to appA's website or 
> appB's website (depending on the siteurl configured in db for each user) 
> and appA or appB needs the ticket to be passed so that they can then 
> onwards 
> be validated against cas.. 
>
> So, the approach I am thinking is: 
> I will create a spring Controller class and map it to a url mapping. *(can 
> anyone please suggest how to achieve this?)* 
> Redirect caslogin on successful to this above controller urlmapping. 
>  *(can 
> anyone please suggest how to achieve this?)* 
> Controller will have the logic to fetch the user's siteurl from db 
> and then redirect the user to this site (which should be treated as a 
> service url by cas server). So that appA or AppB can communicate with the 
> cas server with a ticket. 
>
> Please suggest me if this approach is correct or any better suggestion. 
> *How to get the userloginId on spring's controller on the cas server 
> itself 
> ?* 
> And based on that, I need to get the siteurl from the db again. 
> Any otherway of getting the userloginId and siteurl directly on the 
> Controller ? 
>
>
>
> -- 
> View this message in context: 
> http://jasig.275507.n4.nabble.com/How-to-get-userid-and-other-attributes-in-a-custom-controller-on-cas-serverside-tp4660155.html
>  
> Sent from the CAS Users mailing list archive at Nabble.com. 
>
> -- 
> You are currently subscribed to [email protected] <javascript:> as: 
> [email protected] <javascript:> 
> 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

Reply via email to