...
Code Block | ||||
---|---|---|---|---|
| ||||
<web-app> ... <security-constraint> ... <auth-constraint> <role-name>fedoraUser</role-name> <role-name>fedoraAdmin</role-name> <role-name>newRoleExample</role-name> </auth-constraint> </securty-constraint> </web-app> |
Configure
...
Container Users and Roles
Jetty
- Create a $JETTY_BASE/etc/jetty-users.properties file. This file contains entries in the format username: password [, role, ...], where
- username is the user's login id (the principal)
- password is the user's password
- role is the servlet role they are assigned upon login; jetty allows you to specify any number of roles (or no role at all).
- Sample jetty-users.properties file that contains three users, two of whom are regular users, and the third of whom (fedoraAdmin) is a Fedora superuser:
...