Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Latest commit

 

History

History
72 lines (56 loc) · 5.75 KB

DEVTESTENV.md

File metadata and controls

72 lines (56 loc) · 5.75 KB

Devtest Guide

There are two working components that you would need to configure to test the solution:

Before installing either of the components, ensure you have created an active directory with the following users. Use the same active directory when configuring the two main components.

  • Admin - The account you use to create the active directory
  • Teacher - The account you will be using to create assessments through the Assessment App
  • Student - The account you will be using to view the assessments

The following guide has been developed to allow you to setup a DevTest Environment of Moodle using an Azure Moodle Bitnami Image.

Setting up your test LMS Environment with AAD Single Sign On.

  1. Configuring an LMS: We will be looking at how to configure a Moodle instance to suit the requirements of the solution
  2. Setting up Single Sign On for Azure Active Directory
    • Install and configure OpenID Connect plugin into Moodle (This plugin will enable single sign-on authentication via Azure active directory)

      Microsoft365

      OpenIDConnect

      • Log into your Moodle instance as an administrator and go to site administration
      • Click on plugins and go to install plugins
      • Use the "Install plugin from zip file feature" and install the Microsoft 365 Integration plugin followed by the OpenID Connect plugin

      installplugins

      • Next, go to Dashboard/Site administration/Plugins/Plugins Overview and scroll down to authentication.
      • Enable the OAuth 2 and OpenID Connect plugins
      • Click on the settings blade of the OpenID Connect plugin and scroll down to "Redirect URI" - You will be needing this in the next section when you create an application registration of moodle in Azure Active Directory
  3. Add the Moodle instance as an Application in your Azure Active directory (You should have admin or owner rights to your Azure active directory to be able to add applications and assign permissions to them). Most detailed steps can be found at https://docs.moodle.org/310/en/Microsoft_365#Enable_the_OpenID_Connect_Authentication_Plugin

Here is a summary set of instructions.

  • Sign in to the Microsoft Azure Management Portal.
  • Click on the Azure Active Directory link from Azure services section, then App Registrations from Manage section on the left.
  • Click New registration on the top menu.
  • Enter a name for your application (can be anything you want, but should let you know this is for Moodle).
  • Choose option applicable to your organisation in Supported account types section.
  • In Redirect URI (optional) section, select Web and put the redirect URI from the OpenID Connect authentication plugin configuration. Ensure there is a trailing slash for this URI - i.e. https://example.com/auth/oidc/ Redirect-URL
  • Click Register.
  • Within the application, locate the Application ID, note this value (write it down or copy it somewhere), and set it aside. You'll need it later.
  • Within the application, from the menu on the left, go to Certificates & secrets link in the Manage section.
    • Create a new client secret by clicking New client secret button.
    • Enter a description, and select a duration for "Expires".
    • Click Add.
    • A value will appear under Value, note this value (write it down or copy it somewhere) and set it aside. You'll need it later. client-secret
  • Within the application, click the API permissions link in the Manage section.
  • Finally, add users to the application
    • Click on the app registration, within the overview leaf, click under "Managed application in local directory" MoodleAppRegistration
    • Click on "Assign users and groups"
    • Add users that exist in the current active directory (If there are no users in the current Active Directory, create users in the Active directory first)
  • Add the Client Secret Value and the Application ID into the settings page of OpenID Connect plugin (Found in /Dashboard/Site administration/Plugins/Plugins Overview)
    • After this stage, you should be able login a user that exists in your azure active directory using credentials required to login to Azure portal as that user
  1. Configuring the Learn LTI Application
    • Simply now follow the deployment guide to set up the Learn LTI Application, ensure that you login into the Azure CLI as the same user that created the Azure Active Directory within which you aim to deploy the Azure resources
    • Follow the remaining deployment guide