mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 02:54:32 -05:00
SSO config revision date not updating fix (#934)
This commit is contained in:
parent
c0e99d4047
commit
692b3970af
@ -75,7 +75,7 @@ namespace Bit.Core.Business.Sso
|
||||
_ssoConfigRepository = ssoConfigRepository;
|
||||
_logger = logger;
|
||||
_globalSettings = globalSettings;
|
||||
_schemeCacheLifetime = TimeSpan.FromSeconds(_globalSettings.Sso?.CacheLifetimeInSeconds ?? 60);
|
||||
_schemeCacheLifetime = TimeSpan.FromSeconds(_globalSettings.Sso?.CacheLifetimeInSeconds ?? 30);
|
||||
_samlEnvironment = samlEnvironment;
|
||||
_cachedSchemes = new Dictionary<string, DynamicAuthenticationScheme>();
|
||||
_cachedHandlerSchemes = new Dictionary<string, DynamicAuthenticationScheme>();
|
||||
|
@ -59,7 +59,7 @@
|
||||
"region": "SECRET"
|
||||
},
|
||||
"sso": {
|
||||
"cacheLifetimeInSeconds": 60
|
||||
"cacheLifetimeInSeconds": 30
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -57,5 +57,17 @@ namespace Bit.Core.Repositories.SqlServer
|
||||
return results.ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public override async Task CreateAsync(SsoConfig obj)
|
||||
{
|
||||
obj.CreationDate = obj.RevisionDate = DateTime.UtcNow;
|
||||
await base.CreateAsync(obj);
|
||||
}
|
||||
|
||||
public override async Task ReplaceAsync(SsoConfig obj)
|
||||
{
|
||||
obj.RevisionDate = DateTime.UtcNow;
|
||||
await base.ReplaceAsync(obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user