Hi there,
If I understood you correctly, it is not as simple as querying requests.
You need to check the requested service url
This is the class you need to check your service
GatewayRequestCheckAction
if(service.indexOf("ururl") > 0)
return result(EVENT_PUBLIC_AUTHENTICATION_REQUIRED);
Modify AuthenticationViaForm as well
EVENT_PUBLIC_AUTHENTICATION_REQUIRED maps to you jsp in
Login-webflow.xml
<view-state id="viewPublicLoginForm" view="casPublicLoginView">
<transition on="submit" to="bindAndValidatePublicUser" />
</view-state>
Views.properties
### Login view (/login)
casPublicLoginView.(class)=org.springframework.web.servlet.view.JstlView
casPublicLoginView.url=/WEB-INF/view/jsp/standards/ui/casPublicLoginView
.jsp
may be there is other places you need to change. Roughly this is what I
did.
I hope this helps
________________________________
From: Asiq [mailto:[email protected]]
Sent: Tuesday, 18 August 2009 3:32 PM
To: [email protected]
Subject: [cas-user] How to redirect to different login page
Hi,
We have three application running in our company. I am using CAS for
authentication.
But my requirement is:
- I don't want to go to CAS default login page. User enters URL
specifying their application needed, now depending on this URL, I want
to redirect user to different login page for different application. Each
application indeed use CAS login frame.
Where do I need to write the code to check URL, like
response.getQueryString()?
And after noticing the application demanded, how I will redirect to
different login page?
For example: If i use
response.sendRedirect(response.encodeRedirectURL(url))?
where will I map this url ?
Please help me.
--
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