private void CheckHealth() { _logger.Info("Checking config settings.."); _logger.Info("Running under: Environment.UserName= {0}, Environment.UserDomainName= {1}", Environment.UserName, Environment.UserDomainName); SettingsChecker.CheckPresenceAllPlainSettings(typeof(Configsettings)); _logger.Info("all requried config settings seem present.."); _logger.Info("Url = {0}", Configsettings.HostUrl()); _logger.Info("Auth server Url= {0}", Configsettings.AuthUrl()); _logger.Info("..done with config checks."); }
public void Configuration(IAppBuilder app) { if (Configsettings.OnAzure()) { // Azure has no way of trusting a self signed certificate, // so only option left is to disable the certificate check ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicyErrors) => true; } // silicon client authorization app.UseIdentityServerBearerTokenAuthentication(new IdentityServerBearerTokenAuthenticationOptions { Authority = Configsettings.AuthUrl(), ValidationMode = ValidationMode.Local, RequiredScopes = new[] { IdSrv3.ScopeFrontendDataApi } }); app.UseNancy(); }