Hi All,

How about refactoring the interface like below.

public interface LoginPostExecutor {
    public String getGroupingIdentifier(String response);
}

@Amila: I thought to call the implementation of that interface in
the jsFunction_login() method of StoreHostObject and assign the returned
grouping id to the current session. anyway I will check the feasibility of
using WorkflowExecutor
<https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.3/src/main/java/org/wso2/carbon/apimgt/impl/workflow/WorkflowExecutor.java>
for
this task.

Thanks

On Tue, Jan 13, 2015 at 2:34 PM, Amila De Silva <[email protected]> wrote:

> Hi Lakshman,
> Can you explain a bit about when this is invoked, and for what tasks this
> is going to be used? If we are trying to provide an extension point to run
> a custom code after a user logs in, I think then we should try to use
> WorkflowExecutor
> <https://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/apimgt/org.wso2.carbon.apimgt.impl/1.2.3/src/main/java/org/wso2/carbon/apimgt/impl/workflow/WorkflowExecutor.java>
>  first.
>
> On Tue, Jan 13, 2015 at 1:22 PM, Lakshman Udayakantha <[email protected]>
> wrote:
>
>> Hi All,
>>
>> I am working on [1]. In that I have to implement the application and
>> subscription sharing capability based on the organisation of the login
>> user. I have to create a Login interceptor interface to determine the
>> organisation of login user. We have to extract the organisation identifier
>> from login response using login interceptor. below is a proposed login
>> interceptor interface.
>>
>> public interface LoginInterceptor {
>>
>>     public String getOrganization(String response);
>>
>> }
>>
>> When using WSO2 identity server we can add organisation as an attribute
>> to SAML response and we can extract it in the implementation of the
>> interceptor in API Manager side. Appreciate your thought on this.
>>
>> [1]https://redmine.wso2.com/issues/2917
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005*
>>
>>
>
>
> --
> *Amila De Silva*
>
> WSO2 Inc.
> mobile :(+94) 775119302
>
>


-- 
Lakshman Udayakantha
WSO2 Inc. www.wso2.com
lean.enterprise.middleware
Mobile: *0711241005*
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to