From ed81f3874bee4558b94fc18e32e1db6ed8dbc199 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 9 Aug 2017 22:56:28 -0400 Subject: [PATCH] fix internalidentity setting --- src/Api/Startup.cs | 2 +- src/Api/settings.json | 2 +- src/Billing/settings.json | 2 +- src/Identity/settings.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index f7bc928cb2..67a30226bc 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -180,7 +180,7 @@ namespace Bit.Api { Authority = globalSettings.BaseServiceUri.InternalIdentity, AllowedScopes = new string[] { "api" }, - RequireHttpsMetadata = false && !env.IsDevelopment(), + RequireHttpsMetadata = !env.IsDevelopment() && globalSettings.BaseServiceUri.InternalIdentity.StartsWith("https"), ApiName = "api", NameClaimType = ClaimTypes.Email, // Suffix until we retire the old jwt schemes. diff --git a/src/Api/settings.json b/src/Api/settings.json index 31839f2ae8..650f6fa03a 100644 --- a/src/Api/settings.json +++ b/src/Api/settings.json @@ -8,7 +8,7 @@ "vault": "http://localhost:4001", "api": "http://localhost:4000", "identity": "http://localhost:33656", - "identityInternal": "http://localhost:33656" + "internalIdentity": "http://localhost:33656" }, "sqlServer": { "connectionString": "SECRET" diff --git a/src/Billing/settings.json b/src/Billing/settings.json index 481f843ad2..eac966c20a 100644 --- a/src/Billing/settings.json +++ b/src/Billing/settings.json @@ -8,7 +8,7 @@ "vault": "http://localhost:4001", "api": "http://localhost:4000", "identity": "http://localhost:33656", - "identityInternal": "http://localhost:33656" + "internalIdentity": "http://localhost:33656" }, "sqlServer": { "connectionString": "SECRET" diff --git a/src/Identity/settings.json b/src/Identity/settings.json index 0ba274093d..a2f4b590b5 100644 --- a/src/Identity/settings.json +++ b/src/Identity/settings.json @@ -8,7 +8,7 @@ "vault": "http://localhost:4001", "api": "http://localhost:4000", "identity": "http://localhost:33656", - "identityInternal": "http://localhost:33656" + "internalIdentity": "http://localhost:33656" }, "sqlServer": { "connectionString": "SECRET"