mirror of
https://github.com/bitwarden/server.git
synced 2025-05-22 20:11:04 -05:00
only require https in prod
This commit is contained in:
parent
3b0a26fdaf
commit
552b117821
@ -280,7 +280,7 @@ namespace Bit.Api
|
|||||||
AllowedScopes = new string[] { "api" },
|
AllowedScopes = new string[] { "api" },
|
||||||
Authority = env.IsProduction() ? "https://api.bitwarden.com" : env.IsEnvironment("Preview") ?
|
Authority = env.IsProduction() ? "https://api.bitwarden.com" : env.IsEnvironment("Preview") ?
|
||||||
"https://preview-api.bitwarden.com" : "http://localhost:4000",
|
"https://preview-api.bitwarden.com" : "http://localhost:4000",
|
||||||
RequireHttpsMetadata = !env.IsDevelopment(),
|
RequireHttpsMetadata = env.IsProduction(),
|
||||||
ApiName = "api",
|
ApiName = "api",
|
||||||
NameClaimType = ClaimTypes.Email,
|
NameClaimType = ClaimTypes.Email,
|
||||||
// Version "2" until we retire the old jwt scheme and replace it with this one.
|
// Version "2" until we retire the old jwt scheme and replace it with this one.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user