Yes certainly possible. There will be a fair bit of work. I altered the flow to present different jsps depending on the user type. There was reasonable amount of work.
In your case you can either use a bean to do the work or modify authenticationviaForm class to present your choose company view once the authentication returns success. I hope it helps. Cheers -----Original Message----- From: nothingman [mailto:[email protected]] Sent: Friday, 7 August 2009 3:31 PM To: [email protected] Subject: RE: [cas-user] Customize login workflow Yes I want to do a logic after that my users are authenticated: in particular, after authentication, I don't want to just redirect the users to the application but first I wan't to present a page where the user can choose the company associated to his entry. After choosing the company the user can be redirected to the application and the application should received the company name and the username of the user. Technically I need to add a page in the login workflow after credentials validation: is this possible ? Thanx. Balendran Thavarajah wrote: > > Hi, > > You are probably talking about moving your application code to cas.? > > You should probably get your application to do this, once the user is > authenticated correctly. > > Cheers > > -----Original Message----- > From: nothingman [mailto:[email protected]] > Sent: Friday, 7 August 2009 6:01 AM > To: [email protected] > Subject: [cas-user] Customize login workflow > > > Hi, > I've an user database (a db) where each user can be associate to one or > more > companies. > I would like to use CAS to implement the following login workflow: > 1) The user try to access to a protected resource and he's redirected to > CAS > login form > 2) The user enter his credentials > 3) Cas validate user credentials > 4) If the credential are valid and if the user is associated to only > one > company CAS should simply permit to the user to access to the protected > resource passing userid and company name to the application > 4) If the credential are valid and if the user it's associated to more > than > one company than CAS should ask to the user for which company he want to > work and then the CAS shuld permit to the user to access to the > protected > resource passing userid and the choosed companyname. > > Can this kind of workflow be implemented using CAS ? In other words can > I > customize login workflow to ask some other information to the user after > credentials validation ? > > Thanx- > -- > View this message in context: > http://www.nabble.com/Customize-login-workflow-tp24853361p24853361.html > Sent from the CAS Users mailing list archive at Nabble.com. > > > -- > 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 > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > -- > 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 > > > -- View this message in context: http://www.nabble.com/Customize-login-workflow-tp24853361p24859097.html Sent from the CAS Users mailing list archive at Nabble.com. -- 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 ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -- 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
