1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-22 12:15:36 +01:00

use custom DiscoveryResponseGenerator on cloud too (#921)

This commit is contained in:
Kyle Spearrin 2020-09-08 13:57:52 -04:00 committed by GitHub
parent a997440e3d
commit 55e0f82139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -46,10 +46,7 @@ namespace Bit.Sso.Utilities
public static IIdentityServerBuilder AddSsoIdentityServerServices(this IServiceCollection services,
IWebHostEnvironment env, GlobalSettings globalSettings)
{
if (globalSettings.SelfHosted)
{
services.AddTransient<IDiscoveryResponseGenerator, DiscoveryResponseGenerator>();
}
services.AddTransient<IDiscoveryResponseGenerator, DiscoveryResponseGenerator>();
var issuerUri = new Uri(globalSettings.BaseServiceUri.InternalSso);
var identityServerBuilder = services

View File

@ -16,10 +16,7 @@ namespace Bit.Identity.Utilities
public static IIdentityServerBuilder AddCustomIdentityServerServices(this IServiceCollection services,
IWebHostEnvironment env, GlobalSettings globalSettings)
{
if (globalSettings.SelfHosted)
{
services.AddTransient<IDiscoveryResponseGenerator, DiscoveryResponseGenerator>();
}
services.AddTransient<IDiscoveryResponseGenerator, DiscoveryResponseGenerator>();
services.AddSingleton<StaticClientStore>();
services.AddTransient<IAuthorizationCodeStore, AuthorizationCodeStore>();