--Using XmlSecurityManager
1 post
• Page 1 of 1
--Using XmlSecurityManager
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.
-
Development@SIB - Posts: 325
- Joined: Mon Sep 28, 2009 1:54 pm
1 post
• Page 1 of 1