@JsonIgnore
    @Override
    public String getUsername() {
        return getAttributeAsString(Pac4jConstants.USERNAME);
    }
{@inheritDoc}

Return the username of the user. It can be a login or a specific username.
pac4j-core/src/main/java/org/pac4j/core/profile/CommonProfile.java