1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-22 12:04:27 -05:00

only require https in prod

This commit is contained in:
Kyle Spearrin 2017-04-18 23:08:47 -04:00
parent 3b0a26fdaf
commit 552b117821

View File

@ -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.