WSO2 User Manager, v0.1 Release Note - 21st September 2007

WSO2 UserManager is a library that will let the developers handle user authentication and authorization in applications in a homogeneous manner.

Different projects require user management at various levels. User Manager is designed to cater for needs in different projects.

Features List

Limitations

Distribution Directory Structure

|-- usermanager-core-0.1.jar <file>

|-- user-verification-0.1.war <file>

|-- resources<folder>

|-- LICENSE <file>

|-- README <file>

Usage

Using the Default Realm:

1. Create the database by running resources/create_db.sql

2. Add the following jars to your classpath.

-commons-logging-1.1.jar

-log4j-1.2.13.jar

-usermanager-core-0.1.jar

-your jdbc driver

3. Using the default realm with derby EmbeddedDriver is given below. Please set the resources/user.default.sql file as the sql file.

DefaultRealm realm = new DefaultRealm();
DefaultRealmConfig config =
(DefaultRealmConfig)realm.getRealmConfiguration();

config.setSqlFile("user.default.sql");//user.default.sql file inside the
resources directory of the distribution
config.setConnectionURL("jdbc:derby:/home/muthulee/temp/test/UserDatabase");
config.setDriverName("org.apache.derby.jdbc.EmbeddedDriver");
realm.init(config);
realm.addUser("Alice", "myPass");
boolean isAuthenticated = realm.authenticate("Alice", "myPass");
if(isAuthenticated){
System.out.println("Success");

}

Reporting Problems

Issues can be reported using the public JIRA available on the WSO2 Oxygen Tank

Contact us

WSO2 Mashup Server developers & user can be contacted via mailing lists

Alternatively, questions can also be raised in the WSO2 Commons forum

Thanks,

- WSO2 Commons User Manager Team