I want to create ASP.NET Core MVC app as Moodle External Tool. I created tokens for web services. I know that for Moodle web service is necessary to pass token and web service function name. My question is how to know which user is logged-in in Moodle, and how to get his token or username/password and pass it to Moodle external tool? To get token, i must know username/password, and inversely.