On Sat, Nov 15, 2014 at 7:32 AM, Johann Nallathamby <joh...@wso2.com> wrote:

> Carbon products follow a fine-grained permission based approach. So first
> you should define relevant set of permissions for your webapp. Then you
> should be able to enforce access control using the authentication and
> authorization facilities provided by the OSGi realm service.
>

Actually not the OSGi service, but you can get it from CarbonConext as
follows.

CarbonContext.getThreadLocalCarbonContext().getUserRealm()

>
> On Fri, Nov 14, 2014 at 8:08 AM, Danesh Kuruppu <dan...@wso2.com> wrote:
>
>> Hi all,
>>
>> I am currently working on upgrading the solr in registry indexing. with
>> the proposed design, we are going to deploy solr webapp in the carbon
>> server and use it for registry indexing and we need to allow accessing solr
>> web app only for admin users.
>>
>> What is the best way I could follow to restrict the web app access in
>> carbon server.
>>
>> Thanks
>> --
>>
>> Danesh Kuruppu
>> Software Engineer
>> WSO2 Inc,
>> Mobile: +94 (77) 1690552
>>
>> _______________________________________________
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Associate Technical Lead & Product Lead of WSO2 Identity Server
> Integration Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+94777776950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>



-- 
Thanks & Regards,

*Johann Dilantha Nallathamby*
Associate Technical Lead & Product Lead of WSO2 Identity Server
Integration Technologies Team
WSO2, Inc.
lean.enterprise.middleware

Mobile - *+94777776950*
Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to