Skip to main content

Test Against Production Read Replica

To follow our security policy YOU MUST HAVE TWO OTHER DEVELOPERS OBERSVING when you access production information

  1. Connect to the VPN
  2. Use the DbConnectionConfigurationData string from Prod DB Read Replica found in the Shared-Development section in LastPass to update the DbConnectionConfigurationData string in Utopia's appsettings.json.
  3. CommentAdd outa breakpoint to step over  await ValidatePasswordAsync(password, dbUser); in the method ValidateUsernameAndPasswordAsync in BusinessLogic/Services/AuthenticationService.cs
  4. ReplaceAnd add a breakpoint to step over: PopulateUserSettingLoginRequirements, PopulateSecurityPolicyStatuses, await PopulateRolesFailingOtherRequirementsAsync, InvalidateGroupRolesWhereUserRoleIsFailing in the method GetUserLoginRequirementsStatusAsync in BusinessLogic/Services/AuthenticationService.cs with the code snippet below: 

            private async Task<LoginRequirementsStatus> GetUserLoginRequirementsStatusAsync(DbUser dbUser, AuthenticationRequest authRequest, string applicationId)
            {
                LoginRequirementsStatus loginRequirementsStatus = await InitializeLoginRequirementsStatusAsync(dbUser, authRequest, applicationId);
                loginRequirementsStatus.UserSettingMFARequirementMet = true;
                //PopulateUserSettingLoginRequirements(loginRequirementsStatus, dbUser, authRequest, applicationId);
                //PopulateSecurityPolicyStatuses(loginRequirementsStatus, dbUser, authRequest, applicationId);
                //await PopulateRolesFailingOtherRequirementsAsync(dbUser, applicationId, loginRequirementsStatus);
                //InvalidateGroupRolesWhereUserRoleIsFailing(loginRequirementsStatus);

                return loginRequirementsStatus;
            }