I want to log in to moodle through REST api from another open source application.
Please suggest me how I will proceed.
Thank You....
I want to log in to moodle through REST api from another open source application.
Please suggest me how I will proceed.
Thank You....
Thank You Jerome.
I have tried it by the function core_webservice_get_site_info and it returns information of moodle sitename,username etc.
But I want to get access in to moodle directly from a different web service which acts as client. The username and password of the moodle will be send from the client.
Hi Pinki
Once the user is logged in, would you like them to be viewing their Moodle home page? In this case (I think) you just need to replicate in your own client the POST request produced by the Moodle login page.
If you don't want them to wind up at the Moodle home page, what will you be doing with the login?
Andrew
Hello,
sorry to jump on this.
I have the same question.
We want have some public information with a link where a unknown user can access a course.
This courses save some data to the user so it must be a moodle user.
I can create a user by webservices and enroll it to the course.
But how can I login this user without showing the login screen?
Can I use a one-time-login-link?
Or pass username and password via get to the login link?
Thanks
Stefan