diff --git a/Application/EdFi.Admin.DataAccess/Repositories/ClientAppRepo.cs b/Application/EdFi.Admin.DataAccess/Repositories/ClientAppRepo.cs index 8e2135c61..f07a8c183 100644 --- a/Application/EdFi.Admin.DataAccess/Repositories/ClientAppRepo.cs +++ b/Application/EdFi.Admin.DataAccess/Repositories/ClientAppRepo.cs @@ -461,7 +461,7 @@ public void SetupKeySecret( { using (var context = _contextFactory.CreateContext()) { - var client = CreateApiClient(context, userId, name, sandboxType, key, secret); + var client = CreateApiClient(context, userId, name, sandboxType, key, secret, true); AddApplicationEducationOrganizations(context, applicationId, client); @@ -509,7 +509,7 @@ public ApiClient SetupDefaultSandboxClient( using (var context = _contextFactory.CreateContext()) { _logger.Debug($"Creating API Client"); - var client = GetClient(key, secret) ?? CreateApiClient(context, userId, name, sandboxType, key, secret); + var client = GetClient(key, secret) ?? CreateApiClient(context, userId, name, sandboxType, key, secret, true); _logger.Debug($"Adding Education Organization to client"); AddApplicationEducationOrganizations(context, applicationId, client); @@ -728,8 +728,8 @@ private ApiClient CreateApiClient(IUsersContext context, string name, SandboxType sandboxType, string key, - string secret, - bool isApproved = true) + string secret, + bool isApproved) { var attachedUser = context.Users.Find(userId);