mirror of
https://github.com/bitwarden/server.git
synced 2025-04-06 21:48:12 -05:00
disable unused endpoints on identity server
This commit is contained in:
parent
3a31654828
commit
4354006a27
@ -90,7 +90,15 @@ namespace Bit.Api
|
|||||||
services.AddSingleton<IRateLimitCounterStore, MemoryCacheRateLimitCounterStore>();
|
services.AddSingleton<IRateLimitCounterStore, MemoryCacheRateLimitCounterStore>();
|
||||||
|
|
||||||
// IdentityServer
|
// 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())
|
.AddInMemoryApiResources(ApiResources.GetApiResources())
|
||||||
.AddInMemoryClients(Clients.GetClients());
|
.AddInMemoryClients(Clients.GetClients());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user