DGTLMS & LMSDISPATCHER Guide

Authentication & SSO

Connect Microsoft Entra ID or Google

Add a "Microsoft" or "Google" button to the login page so your users can sign in with their work account (Microsoft 365 or Google Workspace).

Administrator~15 minutesIntermediate
  • A DGTLMS administrator account with access to Administration → Integrations & Connectors.
  • For Microsoft: an account allowed to register an application in the Microsoft Entra admin centre (formerly Azure AD).
  • For Google: an account allowed to create a Google Cloud project linked to your Google Workspace organisation.
  • Your platform's redirect URL. It is shown (and can be copied) in the DGTLMS form; it looks like https://<your-platform>/sso.php.

How it works

The provider (Microsoft or Google) checks the person's identity, then sends them back to DGTLMS with their email address. DGTLMS then looks for an account whose login is that address. If none is found, it can create the account automatically if you have allowed it.

After the first sign-in, the DGTLMS account is linked to the provider identity: it is still found even if the email address changes later (marriage, new domain…).

In Microsoft Entra ID

  1. Open App registrations

    In the Microsoft Entra admin centre (entra.microsoft.com): Identity → Applications → App registrations → New registration.

  2. Name the application

    For example "DGTLMS". Under Supported account types, choose Accounts in this organizational directory only (your organisation only).

  3. Paste the redirect URL

    Platform Web, then paste the redirect URL copied from DGTLMS, without adding anything. Click Register.

  4. Note both IDs

    On the application's Overview page, copy the Application (client) ID and the Directory (tenant) ID.

  5. Create a secret

    Certificates & secrets → New client secret. Copy the Value straight away (not the "Secret ID"): it will not be shown again.

In Google Cloud

  1. Create or choose a project

    In Google Cloud Console (console.cloud.google.com), select your organisation's project or create one.

  2. Configure the consent screen

    In Google Auth Platform (or APIs & Services → OAuth consent screen), choose the Internal audience: only accounts in your Google Workspace domain will be able to sign in. Enter the application name and support email.

  3. Create the credential

    Clients → Create client (or Credentials → Create credentials → OAuth client ID), application type Web application.

  4. Paste the redirect URL

    Under Authorised redirect URIs, paste the redirect URL copied from DGTLMS, exactly as shown.

  5. Note the credentials

    Copy the Client ID and the Client secret.

In DGTLMS

  1. Open the page

    Administration → Integrations & Connectors → Authentication management (SSO OAuth2 / OpenID Connect), then Add an OAuth2 method.

  2. Name the method

    Method name: for example "Microsoft sign-in". It identifies the method in the list; on the login page, the button simply reads "Microsoft" or "Google".

  3. Choose the provider

    Provider: Microsoft Azure AD / Entra ID or Google Workspace. The Endpoints OAuth2 fill in automatically: leave them as they are.

  4. Enter the credentials

    Client ID = Application ID (Microsoft) or Client ID (Google); Client Secret = the secret value. For Microsoft, also fill in Tenant ID with the Directory (tenant) ID.

  5. Keep the suggested settings

    Scopes: openid profile email. Attribute containing the login: email.

  6. Set up automatic creation (optional)

    Under Automatic user creation, tick Enable so that people without an account get one at their first sign-in. Choose the Default level (usually 4 - Learner), optionally a Default session and a Default site (IDs), and restrict Allowed domains to your organisation, for example @company.com.

  7. Save and test

    Click Save. Open the login page in a private browsing window: the Microsoft or Google button appears below the form. Test with a learner account.

  • Login = email address. An existing account is only found if its DGTLMS login is exactly the email address sent by the provider. The "email" field on the user record is not enough.
  • Administrator and instructor accounts. For security, DGTLMS only links an administrator or instructor account to a Microsoft or Google identity if the address is trustworthy. Google guarantees that it is verified. For Microsoft, DGTLMS trusts your directory on three conditions: the Tenant ID entered is the Directory ID (a code such as 1a2b3c4d-…, not common or organizations), the person belongs to that directory, and they are not a guest from another organisation. Otherwise, these accounts keep signing in with their DGTLMS login and password. Learners are not affected.
  • Secret to renew. A Microsoft client secret expires (24 months at most). Put the date in your calendar: when it expires, create a new secret in Entra and paste it into the DGTLMS method (Edit).
  • One button per provider. You can set up Microsoft and Google at the same time: each method adds its own button.
  • Several sites. A method linked to no site is shown everywhere. If each of your sites has its own address, the site record lets you choose which buttons appear there.
  • The redirect URL must be pasted exactly as DGTLMS shows it, with no extra parameter or trailing slash. Otherwise Microsoft returns "AADSTS50011" and Google "redirect_uri_mismatch".
  • If sign-in fails, the reason is recorded in Administration → Technical configuration → Logs (type authentication).

See also