I have been trying to find out where is the code for the 'connect/token' endpoint on IdentityServer4. It's being impossible to find it, I am now starting to believe that this is some kind of built-in controller/endpoint which code is not available to be edited, as it happens with other endpoints ... am I right?
The real question is: I need to change the way this endpoint validates the provided credentials.
IdentityServer uses a hashing algorithm for the user passwords, but I wanted to know if it is possible to change the algorithm being used - or create a similar endpoint or validation method but using another hashing algorithm.
I am considering this approach because I have migrated some user accounts from other source and the hashed passwords stored on the database doesn't use the IdentityServer algorithm.
Feel free to comment, even if you don't have a specific answer, maybe we can reach other conclusions.
Thanks in advance!
PS: I am using ROPC grant type (aka password grant-type).
Edit: Since this scenario is a temporary one - passwords with the old hash (source application) will be migrated to the new hash (IdentityServer) whenever a user is logged in - I am thinking of developing an endpoint to use in the meanwhile to validate the credentials with the 'old' hash and generate a token there, not using the 'connect/token' endpoint at this moment. I am not sure how to generate a token, but I'll dig into that.