From 552b117821bca391bd599dcfbe7ba6b4eb7e6e77 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 18 Apr 2017 23:08:47 -0400 Subject: [PATCH] only require https in prod --- src/Api/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index 915667a5ed..e9cc54f22c 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -280,7 +280,7 @@ namespace Bit.Api AllowedScopes = new string[] { "api" }, Authority = env.IsProduction() ? "https://api.bitwarden.com" : env.IsEnvironment("Preview") ? "https://preview-api.bitwarden.com" : "http://localhost:4000", - RequireHttpsMetadata = !env.IsDevelopment(), + RequireHttpsMetadata = env.IsProduction(), ApiName = "api", NameClaimType = ClaimTypes.Email, // Version "2" until we retire the old jwt scheme and replace it with this one.