info.unterrainer.commons.httpserver.jsons.UserDataJson Maven / Gradle / Ivy
package info.unterrainer.commons.httpserver.jsons;
import java.util.Set;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
@Data
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
public class UserDataJson {
private String userName;
private String client;
private String givenName;
private String familyName;
private String email;
private boolean emailVerified;
private Set realmRoles;
private Set clientRoles;
/**
* Custom Keycloak-attributes 'tenants_read' and 'tenants_write' that have to be
* set under user/attributes within Keycloak and then mapped using an
* AttributeMapper within Keycloak as well. Are comma-separated lists of
* tenant-IDs.
*/
private String readTenants;
private String writeTenants;
private boolean isActive;
private boolean isBearer;
}