1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 18:23:44 +00:00

[PM-19887] authorization for init pending organization (#5643)

* add token authorization for initPendingOrganizations

* clean up
This commit is contained in:
Brandon Treston
2025-04-15 15:39:21 -04:00
committed by GitHub
parent 1ac4a08672
commit f678e3db79
3 changed files with 34 additions and 5 deletions

View File

@@ -54,7 +54,7 @@ public interface IOrganizationService
/// <remarks>
/// This method must target a disabled Organization that has null keys and status as 'Pending'.
/// </remarks>
Task InitPendingOrganization(Guid userId, Guid organizationId, Guid organizationUserId, string publicKey, string privateKey, string collectionName);
Task InitPendingOrganization(User user, Guid organizationId, Guid organizationUserId, string publicKey, string privateKey, string collectionName, string emailToken);
Task ReplaceAndUpdateCacheAsync(Organization org, EventType? orgEvent = null);
void ValidatePasswordManagerPlan(Models.StaticStore.Plan plan, OrganizationUpgrade upgrade);