Hi, Did the implementation for this, Used the name "AuthorizationRoleRetriever" for the interface and below is the config segment in "dataServices.xml" file to add this configuration to the server.
<DataService xmlns="http://wso2.org/projects/carbon/dataServices.xml"> <!-- Below configuration is to configure any role retriever implementation which can be used to retrieve roles when doing role based filtering in DSS, Implementation should implements "AuthorizationRoleRetriever" interface --> <AuthorizationRoleRetriever class="org.wso2.carbon.dataservices.core.auth.UserStoreAuthorizationRoleRetriever"> <!--Property name="userName">admin</Property--> </AuthorizationRoleRetriever> </DataService> And in the interface, below are the method signatures used, public String[] getRolesForUser(MessageContext msgContext) throws DataServiceFault; public String[] getAllRoles(int tenantId) throws DataServiceFault; public void setProperties(Map<String, String> authenticatorProperties); public void init() throws DataServiceFault; setProperties method is used to pass any additional properties user may need in processing get role requests. init method will be used to instantiate the instance. Appreciate any feedback on this. Thanks, On Mon, Sep 21, 2015 at 9:11 AM, Rajith Vitharana <[email protected]> wrote: > Hi Isuru, > > On Mon, Sep 21, 2015 at 8:06 AM, Isuru Haththotuwa <[email protected]> > wrote: > >> +1 for the improvement. Do we have a timeline when this will be available >> with DSS? >> > This will be available in DSS 3.5.0 > > Thanks, > -- > Rajith Vitharana > > Software Engineer, > WSO2 Inc. : wso2.com > Mobile : +94715883223 > Blog : http://lankavitharana.blogspot.com/ > -- Rajith Vitharana Software Engineer, WSO2 Inc. : wso2.com Mobile : +94715883223 Blog : http://lankavitharana.blogspot.com/
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
