aboutsummaryrefslogtreecommitdiff
path: root/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs
diff options
context:
space:
mode:
Diffstat (limited to 'libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs')
-rw-r--r--libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs b/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs
index 8719002..8c65bc8 100644
--- a/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs
+++ b/libs/VNLib.Plugins.Sessions.OAuth/src/OAuth2SessionStore.cs
@@ -40,6 +40,8 @@ namespace VNLib.Plugins.Sessions.OAuth
[ConfigurationName(O2SessionProviderEntry.OAUTH2_CONFIG_KEY)]
internal sealed class OAuth2SessionStore : SessionStore<OAuth2Session>
{
+ const int MAX_SESSION_BUFFER_SIZE = 16 * 1024;
+
private ILogProvider _log;
protected override ISessionIdFactory IdFactory { get; }
@@ -58,7 +60,7 @@ namespace VNLib.Plugins.Sessions.OAuth
.GetPrefixedCache(o2Conf.CachePrefix, HashAlg.SHA256);
//Create remote cache
- Cache = new GlobalCacheStore(cache);
+ Cache = new GlobalCacheStore(cache, MAX_SESSION_BUFFER_SIZE);
IdFactory = plugin.GetOrCreateSingleton<OAuth2TokenFactory>();