1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 19:23:45 +00:00

Add SmMaxProjects to OrganizationLicense (#5678)

* Add SmMaxProjects to OrganizationLicense

* Run dotnet format
This commit is contained in:
Alex Morask
2025-05-05 09:48:43 -04:00
committed by GitHub
parent 4b49b04409
commit 7fe022e26f
10 changed files with 226 additions and 21 deletions

View File

@@ -339,12 +339,13 @@ public class LicensingService : ILicensingService
}
}
public async Task<string> CreateOrganizationTokenAsync(Organization organization, Guid installationId, SubscriptionInfo subscriptionInfo)
public async Task<string> CreateOrganizationTokenAsync(Organization organization, Guid installationId, SubscriptionInfo subscriptionInfo, int? smMaxProjects)
{
var licenseContext = new LicenseContext
{
InstallationId = installationId,
SubscriptionInfo = subscriptionInfo,
SmMaxProjects = smMaxProjects
};
var claims = await _organizationLicenseClaimsFactory.GenerateClaims(organization, licenseContext);