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.
Loading
Gordana TasicPosted Apr 24, 2024, 10:42 PM
Thanks for reply. I have this scenario: to create ASP.NET Core MVC app that I will include in Moodle course. Course participants should access the application, which will have one button. At the click of the button, data for that user will be entered in the grid(i will use core_webservice_get_site_info method). And that's why I need a token, to pass it to the api method.
Is this possible to implement?
Tuhin PaulPosted Mar 17, 2024, 6:22 PM
There's a trade-off between security and convenience when handling user tokens in an ASP.NET Core MVC app acting as a Moodle External Tool.