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.