Hi Chamila/Harsha, Looks like the problem is with AbstractUserStoreManager.doAddInternalRole(). In here we check for only "Application" domain and "Internal" domain. Looks like we are not looking at "Workflow" domain.
So I guess since we don't have any way around here because this code is related to kernel we will have to go back to Internal domain. Also since BPS has been already released with kernel 4.4.1 version and that doesn't understand "Application" domain it can cause compatibility problems. Right ? So I think we have to go back to "Internal" domain in carbon-identity code. Regards. On Sun, Nov 8, 2015 at 4:43 AM, Johann Nallathamby <[email protected]> wrote: > Hi Chamila, > > Ability to add domains "Application" and "Workflow" was given in kernel > 4.4.2. You may have to debug user.core and figure out why it's not being > added that way. > > Regards. > > On Sat, Nov 7, 2015 at 11:57 PM, Chamila Wijayarathna <[email protected]> > wrote: > >> Hi all, >> >> I need to create a role 'Workflow/role1'. To do this I use 'addRole' >> method of userStoreManager as follows. >> >> *CarbonContext.getThreadLocalCarbonContext().getUserRealm().getUserStoreManager().addRole("Workflow/rolename", >> "admin", null);* >> >> But the role which get created here is 'Internal/role1". I have attached >> a image of parameters used for calling above method in attached image. What >> is the reason for this? How can I get this fixed? >> >> Thanks >> >> -- >> *Chamila Dilshan Wijayarathna,* >> Software Engineer >> Mobile:(+94)788193620 >> WSO2 Inc., http://wso2.com/ >> > > > > -- > Thanks & Regards, > > *Johann Dilantha Nallathamby* > Technical Lead & Product Lead of WSO2 Identity Server > Governance Technologies Team > WSO2, Inc. > lean.enterprise.middleware > > Mobile - *+94777776950* > Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>* > -- Thanks & Regards, *Johann Dilantha Nallathamby* Technical Lead & Product Lead of WSO2 Identity Server Governance Technologies Team WSO2, Inc. lean.enterprise.middleware Mobile - *+94777776950* Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
