1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-18 16:11:28 -05:00

[AC-108] Updated PolicyService to use IApplicationCacheService to determine if an organization uses policies

This commit is contained in:
Rui Tome
2023-08-09 12:48:03 +01:00
parent dd82b8a56f
commit b98b107c4b
7 changed files with 40 additions and 3 deletions

View File

@ -367,7 +367,7 @@ public class IdentityServerSsoTests
RedirectUri = "https://localhost:8080/sso-connector.html",
RequestedScopes = new[] { "api", "offline_access" },
CodeChallenge = challenge.Sha256(),
CodeChallengeMethod = "plain", //
CodeChallengeMethod = "plain", //
Subject = null, // Temporarily set it to null
};
@ -397,6 +397,7 @@ public class IdentityServerSsoTests
var organization = await organizationRepository.CreateAsync(new Organization
{
Name = "Test Org",
UsePolicies = true
});
var organizationUserRepository = factory.Services.GetRequiredService<IOrganizationUserRepository>();