This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information

--Using XmlSecurityManager

Documents for the development of and with JVx.

--Using XmlSecurityManager

Postby Development@SIB » Thu Jan 10, 2013 5:49 pm



This article is outdated - please use our new system at

https://doc.sibvisions.com




If you're using a DBSecurityManager you know that it authenticates users against a database. In some cases you don't have a database and you must authenticate with a XML file or a third party product.

If you want to authenticate with a XML file, it's very easy because JVx has a standard implementation for this case. It's very easy to configure a XmlSecurityManager:

Add following to your config.xml:

Code: Select all
<securitymanager>
  <class>com.sibvisions.rad.server.security.XmlSecurityManager</class>
  <userfile>users.xml</userfile>
</securitymanager>

Your users.xml should be stored in the same directory as your config.xml or you could define the full qualified path. The user-file should contain the list of valid users:

Code: Select all
<users>
  <user name="admin" password="admin"/>
  <user name="user" password="user"/>
</users>


With above configuration, an application user will be authenticated against a XML file.
User avatar
Development@SIB
 
Posts: 325
Joined: Mon Sep 28, 2009 1:54 pm

Return to Documentation