[keycloak-dev] callback event when realm is cached
Stian Thorgersen
sthorger at redhat.com
Mon Oct 31 09:42:54 EDT 2016
On 31 October 2016 at 14:01, Bill Burke <bburke at redhat.com> wrote:
>
>
> On 10/31/16 1:54 AM, Stian Thorgersen wrote:
>
> I'm not sure I see how this would be used. Does it not mean that all
> components need to know if they are used within the realm themselves? They
> need to load/init everything when the realm is loaded rather than if/when
> they are used? Also, don't see why this has to happen when the realm is
> cached as we use a invalidation cache this data can be added anytime.
>
>
> True enough. I can remove the event then.
>
> For key providers I needed a similar functionality so just added a map
> with notes to the ComponentModel. I think that's simpler to use, see:
> https://github.com/keycloak/keycloak/blob/master/services/
> src/main/java/org/keycloak/keys/AbstractRsaKeyProvider.java#L50
>
> Works, but in this case you don't know if you're working with a cached
> model or not.
>
>
True. but my assumption was that a note can be available. So if the model
is not cached the note is only available for the session, but if it's
cached then it's available until the component is removed from the cache.
More information about the keycloak-dev
mailing list