Hi

I recently started the following thread

http://www.mail-archive.com/[email protected]/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 
> <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 
> <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 [email protected] as: 
> [email protected]
> 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 [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