[keycloak-user] Custom entity mapping to User entity

Marek Posolda mposolda at redhat.com
Mon Dec 5 09:59:35 EST 2016


Ah, so it' "User" entity from Keycloak DB, not your own? Yes, that is 
supported. See docs [1] and example [2] .

[1] 
https://keycloak.gitbooks.io/server-developer-guide/content/v/2.2/topics/extensions.html
[2] 
https://github.com/keycloak/keycloak/tree/master/examples/providers/domain-extension

Marek

On 05/12/16 14:04, Eriksson Fabian wrote:
> Thank you for replying Marek!
>
> We don't have an existing DB with our entities, but in order to fill the requirements for older applications we have we need to add custom entities to Keycloak which have to be linked to the User entity (just like the Group entities). Are these custom mappings something you support or would you still recommend creating our own User Provider?
>
> Best Regards
> Fabian Eriksson
>
> -----Original Message-----
> From: Marek Posolda [mailto:mposolda at redhat.com]
> Sent: den 5 december 2016 12:36
> To: Eriksson Fabian; keycloak-user at lists.jboss.org
> Subject: Re: [keycloak-user] Custom entity mapping to User entity
>
> If you already have some existing entity (which means that you have some existing DB with your entities), then it's probably best to write your own userStorage provider. See docs and examples for more details (The docs is work in progress though)
>
> Marek
>
> On 05/12/16 10:28, Eriksson Fabian wrote:
>> Hello!
>>
>> We are currently looking for an authentication/authorization/access management provider to use for our applications and we happily stumbled upon Keycloak. As of this moment we are looking into if Keycloak fits all of our requirements and if it doesn't how we can modify it to fit our needs.
>>
>> So; we need to add our own entities to Keycloak (which we've seen is possible) but we also have to map some of these entities to the already existing User entity and in the end, have it included inside the ID token.
>>
>> If this is possible, could you maybe give us a short description of
>> how to do this, that would be much appreciated
>>
>> Best Regards
>> Fabian Eriksson
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
>
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user




More information about the keycloak-user mailing list