private RoleBasedPermissionStore roleBasedPermissionStore;
public void authenticate() {
upgradeGuestToAdmin();
String username = credentials.getUsername();
Credential credential = credentials.getCredential();
if (username == null || !(credential instanceof PasswordCredential)) {
setStatus(AuthenticationStatus.FAILURE);
log.info("Demo login for user (" + username + ") failed: unsupported username/credential.");
return;
}