At the time we receive the response, user has already logged in to the
system. And the response we receive has the information as to which
organisation the user logged into. We just need to use that information to
populate the group-name (or whichever) session variable.

Thanks,
NuwanD.

On Wed, Jan 14, 2015 at 11:41 AM, Lakshman Udayakantha <[email protected]>
wrote:

> Hi All,
>
> According to the requirement user may belongs to many organisations. When
> user login into store there may be a way to user to know what organisation
> to login. But as our proposed solution, organisation is retrieved from
> login response(may come from an IDP). Then user have no way to login to a
> particular organisation. how should I proceed in that case?
>
> Thanks
>
> On Tue, Jan 13, 2015 at 3:21 PM, Lakshman Udayakantha <[email protected]>
> wrote:
>
>> 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 <0711241005>*
>>>>
>>>>
>>>
>>>
>>> --
>>> *Amila De Silva*
>>>
>>> WSO2 Inc.
>>> mobile :(+94) 775119302
>>>
>>>
>>
>>
>> --
>> Lakshman Udayakantha
>> WSO2 Inc. www.wso2.com
>> lean.enterprise.middleware
>> Mobile: *0711241005 <0711241005>*
>>
>>
>
>
> --
> Lakshman Udayakantha
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
> Mobile: *0711241005 <0711241005>*
>
>


-- 
Nuwan Dias

Associate Tech Lead - WSO2, Inc. http://wso2.com
email : [email protected]
Phone : +94 777 775 729
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to