[keycloak-user] How to add Unique constraint to say username and email in Keycloak ?

George Leon g.leon at betiator.com
Fri Jun 12 06:23:27 EDT 2015


I will answer my own question
It is supported out of the box   in

org.keycloak.models.jpa.entitiesUserEntity

@Table(name="USER_ENTITY", uniqueConstraints = {
         @UniqueConstraint(columnNames = {"REALM_ID","USERNAME"}),
         @UniqueConstraint(columnNames = {"REALM_ID","EMAIL_CONSTRAINT"})

Cool stuff,
George







On 06/12/2015 01:07 PM, George Leon wrote:
>
>
> Hi Keycloak Team ,
>
>
>
> Best way to add Unique constraint  to username and email in Keycloak ?
>
>
> Best Regards
> George Leon
>
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20150612/b7a2ade0/attachment.html 


More information about the keycloak-user mailing list