Browse Source

Add check for org SM flag in client store (#3007)

pull/3034/head
Thomas Avery 3 years ago committed by GitHub
parent
commit
ca7ced4e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      src/Identity/IdentityServer/ClientStore.cs

11
src/Identity/IdentityServer/ClientStore.cs

@ -96,6 +96,17 @@ public class ClientStore : IClientStore @@ -96,6 +96,17 @@ public class ClientStore : IClientStore
return null;
}
switch (apiKey)
{
case ServiceAccountApiKeyDetails key:
var org = await _organizationRepository.GetByIdAsync(key.ServiceAccountOrganizationId);
if (!org.UseSecretsManager)
{
return null;
}
break;
}
var client = new Client
{
ClientId = clientId,

Loading…
Cancel
Save