jaliss / securesocial

A module that provides OAuth, OAuth2 and OpenID authentication for Play Framework applications
http://www.securesocial.ws
Apache License 2.0
1.19k stars 510 forks source link

Can not persistent cache when using HttpHeaderAuthenticator #588

Open mlegy opened 8 years ago

mlegy commented 8 years ago

I am using the HttpHeaderAuthenticator and trying to persistent cache for authenticator, so I made a copy of ehcache-default.xml from the distribution, to conf/ehcache.xml

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="ehcache.xsd"
         updateCheck="false">

    <diskStore path="/mnt/data/Project/backend/tmp"/>
    <defaultCache
            maxElementsInMemory="10000"
            eternal="false"
            timeToIdleSeconds="120"
            timeToLiveSeconds="120"
            overflowToDisk="false"
            maxElementsOnDisk="10000000"
            diskPersistent="true"
            diskExpiryThreadIntervalSeconds="120"
            memoryStoreEvictionPolicy="LRU"
    />
</ehcache>

but when I recompile the app the user is logged out again. The play.data file still exists and contains the user info and token. Any idea what may be the problem ?

Axel-AMGHAR commented 1 year ago

It work for me thanks.