Hi,

Thanks for your reply.  The use case is:  based on the "theme" (there is no 
other way to differentiate between different services right now, as far as I 
know - besides looking at the source URL) we would like to bypass certain 
spring/webflow actions from executing OR (if that is not possible), would like 
to check if the theme from source service matches a certain value and bypass 
the execution/tests in the code for the action itself.

Does that answer your question?

Thanks


From: Misagh Moayyed [mailto:mmoay...@unicon.net]
Sent: November-26-14 6:32 PM
To: cas-dev@lists.jasig.org
Subject: RE: [cas-dev] how to programmatically access service details in Action 
Handler (Spring)

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:nklh...@mail.ubc.ca]
Sent: Wednesday, November 26, 2014 6:17 PM
To: cas-dev@lists.jasig.org<mailto:cas-dev@lists.jasig.org>
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 
cas-dev@lists.jasig.org<mailto:cas-dev@lists.jasig.org> as: 
mmoay...@unicon.net<mailto:mmoay...@unicon.net>

To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev



--

You are currently subscribed to 
cas-dev@lists.jasig.org<mailto:cas-dev@lists.jasig.org> as: 
nklh...@mail.ubc.ca<mailto:nklh...@mail.ubc.ca>

To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

-- 
You are currently subscribed to cas-dev@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-dev

Reply via email to