Gordana Tasic

Gordana Tasic

  • 1.6k
  • 96
  • 13.5k

How to authenticate logged-in user in Moodle using asp.net core mvc?

Mar 17 2024 11:43 AM

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.


Answers (2)