Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.
I want to overriding the TokenController in auth server follow #7766, but it doesn't work.
Reproduction Steps
Use abp new Tutorial -u angular -dbms PostgreSQL --separate-identity-server initialize a project.
Overrding TokenController in auth server project:
[Dependency(ReplaceServices = true)]
[ExposeServices(typeof(TokenController))]
public class MyTokenController : TokenController
{
public override Task<IActionResult> HandleAsync()
{
throw new UserFriendlyException("This done not work!");
//return base.HandleAsync();
}
}
Run auth server and post {auth_server_url}/connect/token , will not throw UserFriendlyException.
Expected behavior
Run auth server and post {auth_server_url}/connect/token , it will enter the overrid method.
Is there an existing issue for this?
Description
I want to overriding the TokenController in auth server follow #7766, but it doesn't work.
Reproduction Steps
abp new Tutorial -u angular -dbms PostgreSQL --separate-identity-server
initialize a project.Expected behavior
Run auth server and post {auth_server_url}/connect/token , it will enter the overrid method.
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
6.0
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
Separate Auth Server
Operation System
Windows (Default)
Other information
No response