public ClientSettingsResponseBuilder()
 {
     _response = new ClientSettingsResponse()
     {
         AppInsightsInstrumentationKey = ConfigData.APPLICATION_INSIGHTS,
         ClientId = ConfigData.CLIENT_ID,
         PostLogoutRedirectUri = ConfigData.POST_LOGOUT_URL,
         RedirectUri           = ConfigData.REDIRECT_URL,
         TenantId   = ConfigData.TENANT_ID,
         TestApiUrl = ConfigData.TEST_API_URL
     };
 }
        public ActionResult <ClientSettingsResponse> GetClientConfigurationSettings()
        {
            var response = new ClientSettingsResponse();

            try
            {
                var clientSettingsResponseMapper = _mapperFactory.Get <AzureAdConfiguration, HearingServicesConfiguration, KinlyConfiguration, ClientSettingsResponse>();
                response = clientSettingsResponseMapper.Map(_azureAdConfiguration, _servicesConfiguration, _kinlyConfiguration);
                return(Ok(response));
            }
            catch (Exception e)
            {
                _logger.LogError(e.Message, $"Unable to retrieve client configuration settings for ClientId: {response.ClientId}");
                return(BadRequest(e.Message));
            }
        }
        public ActionResult <ClientSettingsResponse> Get()
        {
            var clientSettings = new ClientSettingsResponse
            {
                ClientId              = _azureAdConfiguration.ClientId,
                TenantId              = _azureAdConfiguration.TenantId,
                RedirectUri           = _azureAdConfiguration.RedirectUri,
                PostLogoutRedirectUri = _azureAdConfiguration.PostLogoutRedirectUri,
                InstrumentationKey    = _applicationInsightsConfiguration.InstrumentationKey,
                TestUsernameStem      = _testUserSecrets.TestUsernameStem,
                ConferencePhoneNumber = _kinlyConfiguration.ConferencePhoneNumber,
                JoinByPhoneFromDate   = _kinlyConfiguration.JoinByPhoneFromDate
            };

            return(Ok(clientSettings));
        }