mirror of
https://github.com/bitwarden/server.git
synced 2024-11-28 13:15:12 +01:00
Add check for org SM flag in client store (#3007)
This commit is contained in:
parent
c4614bfb3d
commit
ca7ced4e43
@ -96,6 +96,17 @@ public class ClientStore : IClientStore
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch (apiKey)
|
||||||
|
{
|
||||||
|
case ServiceAccountApiKeyDetails key:
|
||||||
|
var org = await _organizationRepository.GetByIdAsync(key.ServiceAccountOrganizationId);
|
||||||
|
if (!org.UseSecretsManager)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
var client = new Client
|
var client = new Client
|
||||||
{
|
{
|
||||||
ClientId = clientId,
|
ClientId = clientId,
|
||||||
|
Loading…
Reference in New Issue
Block a user