Trace:
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
jvx:server:security:xmlsecman [2020/06/15 11:11] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
jvx:server:security:xmlsecman [2020/06/25 10:49] (current) cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| If you're using a [[jvx:server:security:dbsecman|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're using a [[jvx:server:security:dbsecman|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: | + | If you want to authenticate with an XML file, it's quite simple because JVx has a standard implementation for this case. It's very easy to configure a XmlSecurityManager: |
| Add the following to your config.xml: | Add the following to your config.xml: | ||
| Line 15: | Line 15: | ||
| </file> | </file> | ||
| - | 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: | + | Your users.xml should be stored in the same directory as your config.xml. Alternatively, you could define the full qualified path. The user file should contain the list of valid users: |
| <file xml users.xml> | <file xml users.xml> | ||
| Line 26: | Line 26: | ||
| </file> | </file> | ||
| - | With above configuration, an application user will be authenticated against a XML file. | + | With the above configuration, an application user will be authenticated against an XML file. |
