Yes, we may rename this as login listener/post login executor  or something
like that(since we listen login and perform something). Once we extracted
organization ID we need to go to next level. Since we are going to
implement this for API store we need to pass this organization id for all
places we populate APIs, applications and etc. It will cause considerable
API changes IMO. Here we don't need to enforce users to use  organization
ID only. In future it could be role or (when we implemented) something like
grouping. Then we may use them as well. Lets make this property generic as
much as possible.

Thanks,
sanjeewa.


On Tue, Jan 13, 2015 at 1:36 PM, Nuwan Dias <[email protected]> wrote:

> I don't think we should be calling this LoginInterceptor since it actually
> doesn't intercept a login request. Its more of a login workflow, a function
> that executes after login.
>
> Thanks,
> NuwanD.
>
> 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>*
>>
>>
>
>
> --
> 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
>
>


-- 

*Sanjeewa Malalgoda*
WSO2 Inc.
Mobile : +94713068779

 <http://sanjeewamalalgoda.blogspot.com/>blog
:http://sanjeewamalalgoda.blogspot.com/
<http://sanjeewamalalgoda.blogspot.com/>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to