mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
[AC-292] Public Api - allow configuration of custom permissions (#4022)
* Also refactor OrganizationService user invite methods
This commit is contained in:
@ -73,4 +73,13 @@ public class ApiApplicationFactory : WebApplicationFactoryBase<Startup>
|
||||
{
|
||||
return await _identityApplicationFactory.TokenFromAccessTokenAsync(clientId, clientSecret);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Helper for logging in with an Organization api key.
|
||||
/// Currently used for the Public Api
|
||||
/// </summary>
|
||||
public async Task<string> LoginWithOrganizationApiKeyAsync(string clientId, string clientSecret)
|
||||
{
|
||||
return await _identityApplicationFactory.TokenFromOrganizationApiKeyAsync(clientId, clientSecret);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user