Integrating moodle app with other app

Integrating moodle app with other app

von Swapnil Shinde -
Anzahl Antworten: 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?


Als Antwort auf Swapnil Shinde

Re: Integrating moodle app with other app

von Juan Leyva -
Nutzerbild von Core developers Nutzerbild von Moodle HQ Nutzerbild von Plugin developers Nutzerbild von 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

Als Antwort auf Juan Leyva

Re: Integrating moodle app with other app

von 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?
Als Antwort auf Swapnil Shinde

Re: Integrating moodle app with other app

von Juan Leyva -
Nutzerbild von Core developers Nutzerbild von Moodle HQ Nutzerbild von Plugin developers Nutzerbild von Testers

This is the correct way:

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

Unfortunately, we don't support password