This all depends on what you actually plan to accomplish via your custom impl. If you could describe your use case we'd better be able to explain the options.
From: Haer, Neelam [mailto:[email protected]] Sent: Wednesday, November 26, 2014 6:17 PM To: [email protected] Subject: [cas-dev] how to programmatically access service details in Action Handler (Spring) Hi all, I'm not sure if there is a way to do this, but I need to access details about the incoming service during the login on CAS server. Here is an example scenario: 1. User navigates to a site that is integrated with my CAS Server 2. User clicks a private resource, and has to log in 3. CAS server action intercepts the request either before the user enters login credentials or during the submission of login credentials 4. CAS server action is able to determine the source service's details and provide some custom implementation based on the service's details (for example the theme specified in the service manager). Is this possible? Please advise? The only thing I have come up with so far is to analyze the incoming URL using something like: final AbstractWebApplicationService service = (AbstractWebApplicationService) context.getFlowScope().get("service"); if(service!=null){ String referral_url = service.getId(); // do something here } I'm hoping there is a better alternative than string comparion with the referral url? Thanks -- 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-dev -- 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-dev
