So I want to port my code from .Net which do all the authentication and authorization inside the MessageHandler.
MessageHandler
This is the converted code into .NetCore