I'm digging into building an identity server using IdentityServer4, and I have some business logic that i want to implement on password change, and on password persist. On the asp.net core page built into the IdentityServer that I've made using the startups, I can achieve it on the controllers provided, ok. But, I wanted to be able to change the password check for a token grant to a windows client or mobile client for example,these clients won't do the login from the asp.net page.
How can I acheive this?