public class DrupalAuth extends java.lang.Object implements io.vertx.ext.auth.AuthProvider
| Constructor and Description |
|---|
DrupalAuth(java.lang.String host,
java.lang.String service,
java.lang.String role,
java.lang.String groupsField,
java.lang.String fullNameField)
Create a new DrupalAuth.
|
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(io.vertx.core.json.JsonObject authInfo,
io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.User>> handler) |
public DrupalAuth(java.lang.String host, java.lang.String service, java.lang.String role, java.lang.String groupsField, java.lang.String fullNameField)
host - The hostname of the drupal site.service - The name of the Services REST service.role - The name of the role required by authorized users.groupsField - The name of the user field containing the group name(s).public void authenticate(io.vertx.core.json.JsonObject authInfo, io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.auth.User>> handler)
authenticate in interface io.vertx.ext.auth.AuthProvider