Update Program.cs

Set three new license options to true: UseRiskInsights, UseOrganizationDomains, and UseAdminSponsoredFamilies.
This commit is contained in:
Lorenzo Moscati 2025-07-03 23:33:57 +02:00 committed by GitHub
parent 676dd7b85c
commit 90e563e21f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -445,6 +445,9 @@ namespace bitwardenSelfLicensor
set("LicenseType", Enum.Parse(licenseTypeEnum, "Organization"));
set("LimitCollectionCreationDeletion", true); //This will be used in the new version of BitWarden but can be applied now
set("AllowAdminAccessToAllCollectionItems", true);
set("UseRiskInsights", true);
set("UseOrganizationDomains", true);
set("UseAdminSponsoredFamilies", true);
set("Hash", Convert.ToBase64String((byte[])type.GetMethod("ComputeHash").Invoke(license, new object[0])));
set("Signature", Convert.ToBase64String((byte[])type.GetMethod("Sign").Invoke(license, new object[] { cert })));