[keycloak-dev] how to create a cache for a new session?
Federico Michele Facca
federico.facca at martel-innovate.com
Fri Jul 26 08:10:54 EDT 2019
Hi Pedro!
Thanks a lot :) Will look to your hints right now!
I am just trying to have a specific cache for the permanent sessions
(associated to the permanent tokens) so to not mess up the other sessions :)
Federico
On Fri, 26 Jul 2019 at 14:08, Pedro Igor Silva <psilva at redhat.com> wrote:
> Hi Federico,
>
> Not sure what you are trying to achieve but you should be probably looking
> at [1] and [2]. It seems you are missing the cache definition in the
> infinispan subsystem. The first is for running in embedded mode like when
> running the server from your IDE using KeycloakServer.
>
> [1]
> https://github.com/keycloak/keycloak/blob/7a96911a83095386a7017268191b6bf0ca3e1b6c/model/infinispan/src/main/java/org/keycloak/connections/infinispan/DefaultInfinispanConnectionProviderFactory.java#L50
> [2]
> https://github.com/keycloak/keycloak/blob/3d4283fac9a809666c9ddd22f05d38a61756f1d4/wildfly/server-subsystem/src/main/resources/subsystem-templates/keycloak-infinispan.xml
>
> On Fri, Jul 26, 2019 at 5:56 AM Federico Michele Facca <
> federico.facca at martel-innovate.com> wrote:
>
>> Hi,
>> I am doing experiments for the support of "permanent" tokens. (see
>> previous
>> thread on the matter).
>>
>> In doing so, I thought that the best solutions was to create a separate
>> storage cache (as for offline sessions).
>>
>> Now this is configured in the code, but configuration for this new cache
>> storage of course can't be found (since I haven't created it :) ) so i get
>> this error:
>>
>> 10:46:16,257 ERROR XNIO-1 task-1
>> [org.keycloak.services.error.KeycloakErrorHandler] Uncaught server error
>>
>> org.infinispan.commons.CacheConfigurationException: ISPN000436: Cache
>> 'permanentSessions' has been requested, but no cache configuration exists
>> with that name and no default cache has been set for this container
>>
>> I thought this guide:
>>
>> https://github.com/keycloak/keycloak/blob/master/docs/updating-database-schema.md
>> to be the solution, but 1) there is no existing db. 2) from keycloak
>> repository root, i can't find the path: connections/jpa-liquibase/pom.xml
>>
>> Thanks for any hint!
>> Cheers,
>> Federico
>>
>>
>> --
>> *Dr. FEDERICO MICHELE FACCA*
>> *CTO, Head of Martel Lab*
>> +41 788075838
>> *MARTEL INNOVATE* <https://www.martel-innovate.com/> - INNOVATION, WE
>> MAKE
>> IT HAPPEN
>> Click *HERE* to download Martel reports and white papers!
>> <https://www.martel-innovate.com/premium-content/>
>> Follow us on *TWITTER* <https://twitter.com/Martel_Innovate>
>> _______________________________________________
>> keycloak-dev mailing list
>> keycloak-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>
>
--
*Dr. FEDERICO MICHELE FACCA*
*CTO, Head of Martel Lab*
+41 788075838
*MARTEL INNOVATE* <https://www.martel-innovate.com/> - INNOVATION, WE MAKE
IT HAPPEN
Click *HERE* to download Martel reports and white papers!
<https://www.martel-innovate.com/premium-content/>
Follow us on *TWITTER* <https://twitter.com/Martel_Innovate>
More information about the keycloak-dev
mailing list