Version 5.x has been out of support since December 13, 2022, and this corresponding section of the documentation is no longer maintained. We strongly recommend upgrading to a supported version.

Management Endpoints

When you add Duende.BFF to DI - a default implementation for every management endpoint gets registered:

// management endpoints
services.AddTransient<ILoginService, DefaultLoginService>();
services.AddTransient<ILogoutService, DefaultLogoutService>();
services.AddTransient<IUserService, DefaultUserService>();
services.AddTransient<IBackchannelLogoutService, DefaultBackchannelLogoutService>();

You can add your own implementation, by overriding our default after calling AddBff().

The interface of the management endpoints is pretty generic, and allows for inserting any custom logic:

public interface IBffEndpointService
    Task ProcessRequestAsync(HttpContext context);