Hi,
I am new to Moodle,
I need to create a plugin to call a rest service from a third-party API and assigned a course to a logged-in user based on the response (User login throw an OAth2 service).
Can anybody direct me which kind of plugin do I need to create?
I think I have to use after_require_login callback.
Thanks