diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index 924625955a..381a40be03 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -90,7 +90,15 @@ namespace Bit.Api services.AddSingleton(); // IdentityServer - var identityServerBuilder = services.AddIdentityServer() + var identityServerBuilder = services.AddIdentityServer(options => + { + options.Endpoints.EnableAuthorizeEndpoint = false; + options.Endpoints.EnableIntrospectionEndpoint = false; + options.Endpoints.EnableEndSessionEndpoint = false; + options.Endpoints.EnableUserInfoEndpoint = false; + options.Endpoints.EnableCheckSessionEndpoint = false; + options.Endpoints.EnableTokenRevocationEndpoint = false; + }) .AddInMemoryApiResources(ApiResources.GetApiResources()) .AddInMemoryClients(Clients.GetClients());