abpframework / abp

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.
https://abp.io
GNU Lesser General Public License v3.0
12.53k stars 3.37k forks source link

How to customize connect/token API? #17136

Open PioneerOfProgramming opened 1 year ago

PioneerOfProgramming commented 1 year ago

I am using ABP OpenIddict Module as seperate AuthServer and i want to navigate to connect/token api in token controller to do something benefit for me. Can we do that? If yes, please provide me useful example

maliming commented 1 year ago

You can override/replace the TokenController.

https://github.com/abpframework/abp/blob/dev/modules/openiddict/src/Volo.Abp.OpenIddict.AspNetCore/Volo/Abp/OpenIddict/Controllers/TokenController.cs#L13

PioneerOfProgramming commented 1 year ago

Please, can you give me an example How to override it in auth server

maliming commented 1 year ago

hi

https://docs.abp.io/en/abp/latest/Customizing-Application-Modules-Overriding-Services