mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
[EC-758] Add environment variable to enforce SSO Policy for all users (#2428)
* [EC-758] Add environment variable GlobalSettings.Sso.EnforceSsoPolicyForAllUsers to enforce SSO Policy for all users * [EC-758] Add integration tests * [EC-758] Add Entities namespace to resolve ambiguous reference * [EC-758] dotnet format * [EC-758] Updated integration tests to check for logins with all user types * [EC-758] Create new TestServer for each test * [EC-758] Combine unit tests and refactor to use BitAutoData
This commit is contained in:
@ -491,6 +491,7 @@ public class GlobalSettings : IGlobalSettings
|
||||
{
|
||||
public int CacheLifetimeInSeconds { get; set; } = 60;
|
||||
public double SsoTokenLifetimeInSeconds { get; set; } = 5;
|
||||
public bool EnforceSsoPolicyForAllUsers { get; set; }
|
||||
}
|
||||
|
||||
public class CaptchaSettings
|
||||
|
@ -4,4 +4,5 @@ public interface ISsoSettings
|
||||
{
|
||||
int CacheLifetimeInSeconds { get; set; }
|
||||
double SsoTokenLifetimeInSeconds { get; set; }
|
||||
bool EnforceSsoPolicyForAllUsers { get; set; }
|
||||
}
|
||||
|
Reference in New Issue
Block a user