Integrating moodle app with other app

Integrating moodle app with other app

by Swapnil Shinde -
Number of replies: 3
Not sure if its kinda stupid question, but I am planning to integrate Moodle app in training part of other mobile application and trying to invoke it from my custom app.

My custom mobile app is authenticating via LDAP so as moodle so both applications share same authentication.

I can put  "siteurl": as my site address, which skips first step of adding url when app launches.

I want to pass user name and password to Moodle automatically so user doesn't have to login twice or I can get the token and using his credentials and pass it to moodle app.

Can you suggest which way will be better to do it? if yes then can point me where it should store or how it should be passed for Moodle app to pick it up.

or it not recommended to it?


Average of ratings: -
In reply to Swapnil Shinde

Re: Integrating moodle app with other app

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

this is not currently supported by the app. The app supports to be invoked by the browser only but it requires to generate a "session" token before in the own app.

What you can do is pass the username, something like username@yoursiteurl, will automatically fill the url and username fields, more information here: https://docs.moodle.org/32/en/Creating_Moodle_Mobile_friendly_courses#Links_to_open_the_Moodle_Mobile_app

In reply to Juan Leyva

Re: Integrating moodle app with other app

by Swapnil Shinde -
Thank you Juan,
correct me if I am wrong, should I use it like this?

moodlemobile://link=https://yourmoodlesite.org?usernmame=john&password=password?
In reply to Swapnil Shinde

Re: Integrating moodle app with other app

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

This is the correct way:

moodlemobile://link=https://john@yourmoodlesite.org

Unfortunately, we don't support password