Database authentication service.
| Modifiers | Name | Description |
|---|---|---|
static String |
AUTH_DB_NAME |
Database authentication service name. |
| Type | Name and description |
|---|---|
Boolean |
getAllowEmptyPasswords()Returns allows empty passwords. |
Boolean |
getAuthoritative()Returns whether authorization and authentication are passed to lower level modules. |
Map<String, Object> |
getDatabase()Returns the database properties. |
String |
getPasswordField()Returns the name of the password field. |
String |
getUserNameField()Returns the name of the user name field. |
String |
getUsersTable()Returns the name of the users table. |
Object |
methodMissing(String name, Object args) |
void |
setStatementsMap(StatementsMapFactory factory) |
| Methods inherited from class | Name |
|---|---|
class AbstractAuthService |
getAlias, getAuth, getDomain, getId, getName, getPrefix, getRef, getRefDomain, getRequireExcept, getRequireGroups, getRequireUsers, getRequireValid, methodMissing, setAlias, setDefaultWebServiceFactory, setId, setPrefix, setRef, setRefDomain, toString |
Database authentication service name.
Returns allows empty passwords.
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "auth-db", auth: "Private Directory", location: "/private", {
allow emptyPasswords: no
}
}
}
null.Returns whether authorization and authentication are passed to lower level modules.
true if enabled or null.Returns the database properties.
database the database name;user the database user name;password the user password;host the database host;port the database port;socket the database socket;charset the database character set;driver the database driver;encryption the password encryption;
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "auth-db", auth: "Private Directory", location: "/private", {
database "authdb", user: "userdb", password: "userpassdb", host: "localhost", driver: "mysql"
}
}
}
null.Returns the name of the password field.
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "auth-db", auth: "Private Directory", location: "/private", {
field password: "passwd"
}
}
}
null.Returns the name of the user name field.
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "auth-db", auth: "Private Directory", location: "/private", {
field userName: "username"
}
}
}
null.Returns the name of the users table.
httpd {
domain "test1.com", address: "192.168.0.51", {
setup "auth-db", auth: "Private Directory", location: "/private", {
users table: "users"
}
}
}
null.