[keycloak-user] User cache doesn't get updated

Padmaka Wijayagoonawardena padmaka.jw at gmail.com
Wed Aug 31 02:22:56 EDT 2016


Ok thanks, well do that and revert back

On Wed, Aug 31, 2016 at 11:34 AM, Stian Thorgersen <sthorger at redhat.com>
wrote:

> There's been a number of fixes around caching since 1.9.0.Final. We no
> longer provide support for 1.9.0.Final, please upgrade to 2.1.0.Final and
> see if your issues are resolved.
>
> On 31 August 2016 at 07:43, Padmaka Wijayagoonawardena <
> padmaka.jw at gmail.com> wrote:
>
>> Hi,
>>
>> I'm using Keycloak 1.9.0.Final and mysql as the DB. I have written a
>> custom social identity provider. This social identity provider uses a
>> custom user attribute mapper that i have written. The user attribute mapper
>> will map a custom attribute coming from the openId connect userinfo
>> endpoint to a Keycloak role. I have overridden the updateBrokeredUser
>> method in the AbstractJsonUserAttributeMapper class to update the
>> brokered user when the user logs in using the social identity provider.
>>
>> The complete flow works well, however it seems like there is a caching
>> issue. I update the user role via the updateBrokeredMethod but it does not
>> get reflected in the user roles immediately.
>> However, when I update the cache it works fine.
>>
>> Thanks,
>> Padmaka
>>
>> _______________________________________________
>> keycloak-user mailing list
>> keycloak-user at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/keycloak-user/attachments/20160831/7d143fb0/attachment.html 


More information about the keycloak-user mailing list