From b848e9e22c1fc5d5d0cca0e21f3accfaa52970a8 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Fri, 28 Aug 2020 21:28:47 -0400 Subject: [PATCH] fix MetadataAddress --- src/Identity/Startup.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Identity/Startup.cs b/src/Identity/Startup.cs index 96f5435c8e..838e922e07 100644 --- a/src/Identity/Startup.cs +++ b/src/Identity/Startup.cs @@ -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"; @@ -209,7 +210,7 @@ namespace Bit.Identity options.Endpoints.EnableTokenRevocationEndpoint = false; options.IssuerUri = $"{issuerUri.Scheme}://{issuerUri.Host}"; options.Caching.ClientStoreExpiration = new TimeSpan(0, 5, 0); - if(env.IsDevelopment()) + if (env.IsDevelopment()) { options.Authentication.CookieSameSiteMode = Microsoft.AspNetCore.Http.SameSiteMode.Unspecified; }