1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05: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
2 changed files with 2 additions and 8 deletions

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>();