@Override
    public boolean equals(final Object o) {
        if (this == o)
            return true;

        if (!(o instanceof AuthenticatedUser))
            return false;

        final AuthenticatedUser u = (AuthenticatedUser) o;

        return name.equals(u.name);
    }
If {@link Authenticator} doesn't require authentication, this method may return true.
gremlin-server/src/main/java/org/apache/tinkerpop/gremlin/server/auth/AuthenticatedUser.java