I am trying to achieve a similar functionality but little different. Question Posted in this forum: http://jasig.275507.n4.nabble.com/3-Web-apps-A-B-and-C-App-A-is-the-origin-only-but-app-B-and-C-will-serve-the-user-dynamically-how-toe-td4660132.html
I have three web applications, A, B, C app A will be html based website and the portal and main entry for user login only. Basically it will have a login link, when clicked will redirect to CAS server's login page. User inputs his id and password.. I have setup in database for each user, where they need to land (in app B or app C). So doing a database query on the user database (still being on cas server) where I have the sites to get the user's corresponding site based on his loginid. and then doing a jsp redirect to the app B or C. (not again to app A, as this is only html pages). App B and C are the real applications serving dynamic contents. So my questions, 1. Can I use my app A, directly as the getway to offer users to login rather sending them to cas server ? 2. Is there any way to get any other DB table column values along with username from the same users table? So that I can use that in my code. 3. Being CAS server gets the user redirected from app A and then depending on logic, will redirect the user to app B or C. I am planning to use JSP redirect here, in this case, will the tickets will be forwarded to the app B, or C when we do a jsp / servlet redirect ? Or is there any better way, (like dynamically setting the service url where the cas server will gonna redirect the user passing the ticket to app B or C, rather not sending back again to the origin app A) ? Thanks Shib aram * java-with-shiva.blogspot.com ** * <http://java-with-shiva.blogspot.com> On Thu, Jul 4, 2013 at 10:28 PM, Michael Wechner <michael.wech...@wyona.com>wrote: > Hi > > I recently started the following thread > > http://www.mail-archive.com/cas-user@lists.jasig.org/msg14230.html > > because I also try to have my own login form. IIUC the trick is that you > have a JavaScript embeded, which is first retrieving a "login ticket", > which then can be used to submit the credentials to CAS. > > HTH > > Michael > > Am 04.07.13 18:17, schrieb Rohit Kotecha: > > Hi Team,**** > > ** ** > > I have successfully integrated CAS with my spring security based web app. > **** > > now as per requirement we don’t want centralize cas login page. instead of > it we want to use our application login page and we have 4 different site > which has totally different login page and UI.**** > > ** ** > > so from > https://wiki.jasig.org/display/CAS/Using+CAS+from+external+link+or+custom+external+form > I modified casloginview.jsp and added mentioned code in my login jsp. > **** > > ** ** > > but still on clicking of login link it redirect to cas login page. so do I > need to change configuration in spring security xml file.**** > > ** ** > > do we need to modify loginurl property of cas?**** > > ** ** > > I don’t understand just adding code to application login.page how we can > redirect user to application specific login page? **** > > ** ** > > <form name="embeddedLoginForm" method="POST" action="/cas/login?service= > http://mysuperservice.com"> > <input type="hidden" name="lt" /> > <input type="hidden" name="flowExecutionKey" /> > <input type="hidden" name="_eventId" value="submit" /> > <input type="text" id="username" name="username" /> > <input type="password" id="password" name="password" /> > <input type="submit" value="Login" /> > </form> > ... > <script language="Javascript" src="/cas/login?service= > http://mysuperservice.com" /> > <script language="Javascript"> > document.embeddedLoginForm.lt <http://document.embeddedloginform.lt/> > =lt; > document.embeddedLoginForm.flowExecutionKey=flowExecutionKey; > </script> **** > > ** ** > > above code I added in login.jsp.**** > > ** ** > > please help me.**** > > ** ** > > Thanks and Regards,**** > > Rohit Kotecha**** > > -- > You are currently subscribed to cas-user@lists.jasig.org as: > michael.wech...@wyona.com > > > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -**************Nihilent*************** > " *** All information contained in this communication is confidential, > proprietary, privileged > and is intended for the addressees only. If youhave received this E-mail in > error please notify > mail administrator by telephone on +91-20-39846100 or E-mail the sender by > replying to > this message, and then delete this E-mail and other copies of it from your > computer system. > Any unauthorized dissemination,publication, transfer or use of the contents > of this communication, > with or without modifications is punishable under the relevant law. > > Nihilent has scanned this mail with current virus checking technologies. > However, Nihilent makes no > representations or warranties to the effect that this communication is > virus-free. > > Nihilent reserves the right to monitor all E-mail communications through its > Corporate Network. *** " > > *************************************************************************- > > > -- > You are currently subscribed to cas-user@lists.jasig.org as: > mspsa...@gmail.com > To unsubscribe, change settings or access archives, see > http://www.ja-sig.org/wiki/display/JSG/cas-user > > -- You are currently subscribed to cas-user@lists.jasig.org as: arch...@mail-archive.com To unsubscribe, change settings or access archives, see http://www.ja-sig.org/wiki/display/JSG/cas-user