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

fix MetadataAddress

This commit is contained in:
Kyle Spearrin 2020-08-28 21:28:47 -04:00
parent 5a5b9163bf
commit b848e9e22c

View File

@ -86,7 +86,8 @@ namespace Bit.Identity
.AddOpenIdConnect("sso", "Single Sign On", options =>
{
options.Authority = globalSettings.BaseServiceUri.Sso;
options.MetadataAddress = globalSettings.BaseServiceUri.InternalSso;
options.MetadataAddress = globalSettings.BaseServiceUri.InternalSso +
"/.well-known/openid-configuration";
options.RequireHttpsMetadata = !Environment.IsDevelopment() &&
globalSettings.BaseServiceUri.InternalIdentity.StartsWith("https");
options.ClientId = "oidc-identity";