On Wed, Oct 30, 2013 at 3:03 PM, Kishanthan Thangarajah <[email protected]
> wrote:

> Hi All,
>
> With the recent changes to ActivationHandler (we removed it with CC
> re-factoring effort), we observe a change is tenant loading in some of the
> products. The tenant does not load with the login. But it starts to load
> when you try to access some mgt console pages (for example, try to view the
> service lists). This is because those AdminServices do a call to
> TenantAxisUtils to get the tenantConfigContext, on which the tenant loading
> also happens.
>
> But this behavior is casing issues in some products (We have currently
> identified only BPS). In BPS, the requirement is to load tenant when the
> user is directed to the mgt console landing page. So the common solution is
> to call the load tenant method after the successful login of tenant, like
> earlier.
>
> We found a possible place to plug in this call. In
> AuthenticationAdmin#login method, after calling  onSuccessAdminLogin, we
> can call the tenant loading part.
>

There are authenticators other than AuthenticationAdmin such as Basic Auth,
SAML2 SSO and so on.  Therefore, tenant loading part must be inside the
"onSuccessAdminLogin" which is called by all authenticators. Carbon context
creation, registry loading  and etc  are also happened inside the
"onSuccessAdminLogin"

Thanks,
Asela.


>
> But my question is, is this approach correct? or do we have any other
> suitable place to plug this call, other than AuthenticationAdmin?
>
> Thanks,
> Kishanthan.
>
> --
> *Kishanthan Thangarajah*
> Senior Software Engineer,
> Platform Technologies Team,
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - +94773426635
> Blog - *http://kishanthan.wordpress.com*
> Twitter - *http://twitter.com/kishanthan*
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Thanks & Regards,
Asela

ATL
Mobile : +94 777 625 933
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to