1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-22 21:51:22 +01: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";
@ -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;
}