Replies: 2 comments 3 replies
-
good catch, thanks for reporting, it seems that changing that line to
is all that is needed, perhaps you can confirm? |
Beta Was this translation helpful? Give feedback.
0 replies
-
That looks good to me. I currently don't build mod_auth_openidc from source so I can't confirm quickly. Can you send me a build for Ubuntu 22.04? I can drop that in and test. Thanks. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sessions with expiry higher than 30 days are immediately lost when storing in memcached. Typically results in an infinite auth loop.
In order to store data with ttl higher than 30 days in memcached the ttl / expiry must be expressed in epoch instead of "seconds to live". I suggest always sending epoch expiry to memcached, should work both above and below the 30 day threshold.
https://github.com/zmartzone/mod_auth_openidc/blob/9a04dba9fab14270548e2c458d4f9a9ea3063515/src/cache/memcache.c#L332
https://github.com/memcached/memcached/wiki/Commands
"An expiration time, in seconds. '0' means never expire. Can be up to 30 days. After 30 days, is treated as a unix timestamp of an exact date."
Beta Was this translation helpful? Give feedback.
All reactions