Hi Tharindu, with the help of your guidance and reference links you sent i been able to create partially completed working sample of user store for mongodb ,i created the userstore by implementing the UserStoreManager interface is it a better way to implement the user store? here i shared my work in [1].hope for your feedback to continue the user store development, Now i'm in the stage of developing the database architecture for mongodb and i will soon update all my works done so far in my blog
[1] https://github.com/asanthamax/mongodbuserstore Thanks, Regards, Asantha On Sat, Mar 12, 2016 at 1:28 AM, Tharindu Edirisinghe <[email protected]> wrote: > Hi Asantha, > > Glad to see you are progressing through the project. > > Since you are trying this in Identity Server 5.1.0, you need to update the > dependencies with correct versions as below. > > <dependency> > <groupId>org.wso2.carbon</groupId> > <artifactId>org.wso2.carbon.user.core</artifactId> > <version>4.4.3</version> > </dependency> > <dependency> > <groupId>org.wso2.carbon</groupId> > <artifactId>org.wso2.carbon.user.api</artifactId> > <version>4.4.3</version> > </dependency> > > > Also for the OSGI issue, I used the maven-scr-plugin 1.7.2 version and > could get the OSGI bundle created properly. > > <groupId>org.apache.felix</groupId> > <artifactId>maven-scr-plugin</artifactId> > <version>1.7.2</version> > > > I have sent a pull request [1] with these changes to your GIT repo. > > When you extend the AbstractUserStoreManager class, you must implement the > following two methods. > > > public Properties getDefaultUserStoreProperties() { > return null; > } > > public Map<String, String> getProperties(Tenant tenant) throws > UserStoreException { > return null; > } > > If you have not implemented those two methods, then in the management > console UI, userstores dropdown, your userstore manager will not appear. > > You can find a working sample in [2]. However it is done for IS 5.0.0 > version, but you can modify the dependencies in POM file as above and get > it working on IS 5.1.0. > > Once you get it to working, you can refactor the code and add your own > implementation for the MongoDB userstore manager so that you won't face any > OSGI related issues. > > [1] https://github.com/asanthamax/mongodbuserstoremanager/pull/1/files > > [2] > https://svn.wso2.org/repos/wso2/people/tharindue/customuserstore/mystore/ > > Thanks, > TharinduE > > On Sat, Mar 12, 2016 at 1:33 AM, Asantha Thilina <[email protected] > > wrote: > >> Hi tharindu, >> >> currently i'm in the development stage of mongodb user store manager and >> i implemented some modules to communicate with mongodb and i shared what i >> have done so far in github[1]. can you review my code and give me a >> feedback whether my approach is correct or has to be improve, I had some >> questions while i developing user store,how can i make carbon core module? >> and also how can i package osgi bundles inside jar folder i added >> packaging as bundle in pom file but it's still not adding it to jar file >> any idea or suggestion would be grateful. >> >> [1]. https://github.com/asanthamax/mongodbuserstoremanager >> >> thanks, >> Best Regards, >> Asantha >> > > > > -- > > Tharindu Edirisinghe > Software Engineer | WSO2 Inc > Platform Security Team > Blog : tharindue.blogspot.com > mobile : +94 775181586 >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
