Installing Joomdle in Moodle
For this article, I have installed Joomla 3.6.2 and Moodle 3.1 as 2 separate domains (e.g. brochure.yoursite.com and courses.yoursite.com).
Joomdle authentication plugin
You are now ready to install the Joomdle authentication plugin in Moodle.
- Download the Joomdle Core files, and unzip.
- Login to Moodle with an admin account.
- Go to Site administration > Plugins > Install plugins.
- Drag and drop your unzipped file, Moodle / auth_joomdle.zip.
- Click Install plugin from the ZIP file.
- Click Continue.
- Click Upgrade Moodle database now.
- Go to Site administration > Plugins > Authentication > Manage authentication.
- Enable the Joomdle authentication plugin (e.g. click the eye icon).
- Click Settings for Joomdle.
- Add the Joomla URL for your Joomla site (e.g. https://yourJoomlasite.com).
- Add the Joomdle's Joomla authentication token (e.g. long alphanumeric created in Joomla).
Note that the authentication token can't be added until Joomdle is installed on Joomla.
Other settings that you will likely want to make here include:
- Sync users to Joomla: yes
Web Service Functions
Now we can add functions to the recently created web service.
- Go to Site administration > Plugins > Web services > External services.
- Click Functions for the Joomdle web service.
- Click Add functions.
- Search for Joomdle and add all the functions.
Advance Moodle Configuration
Taken from the Joomdle website.
Note: Some of these options can render your Moodle site inaccessible - please ensure you know what you are doing!
Removing the default Moodle login page (redirect the Moodle login page to Joomla!)
- Define an alternate login URL for Moodle, so that Moodle users never see the Moodle login page. We recommend that you don't enable this until everything is up, testing, testing again, tested one more time, and running. Oh did we say, test first before you do this!
- Site administration->Plugins->Autenticathion->Manage autenthication: Alternate Login URL. Here we put Joomla URL.
- If you are using Moodle in a wrapper, you can use this URL, so Joomla login page won't appear inside the wrapper:https://yoursite.com/components/com_joomdle/views/wrapper/getout_login.php
Creating an alternative login page for Moodle's Administrators
- If you have redirected the default Moodle login page to Joomla, as defined above, you will need to create an additional method to enter Moodle for Moodle Administrators. To access Moodle, enter this URL in your browsers address bar https://yoursite.com/moodle/auth/joomdle/joomdle_login.php?login=moodle
Restrict access to Moodle to registered users only
- Restrict access to Moodle to registered users only, so that no guests can enter the Moodle site.
- Security -> Site Policies -> Force users to login
Thanks for visiting.