Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Release: Mautic Audiences 1.1.5 — Minor update available for module mautic_audiences (1.1.5). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: RightUp 1.0.2 — Minor update available for module rightup (1.0.2). Release: CronWatch 0.12.1 — Minor update available for module cronwatch (0.12.1). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Social Auth Microsoft

Security covered Drupal 9–11 PHP >=8.1

Part of the Social ecosystem · 37 projects

View on drupal.org

This project is part of the Drupal Social Initiative and is based on the Social API.

Social Auth Microsoft allows users to register and login to your Drupal site with their Microsoft account. It is based on Social Auth and Social API projects

This module adds a path user/login/microsoft which redirects the user to Microsoft Accounts for authentication.

After Microsoft has returned the user to your site, the module compares the user id or email address provided by Microsoft. If your site already has an account with the same email address or the user has previously registered using Microsoft, the user is logged in. If not, a new user account is created. Also, a Microsoft account can be associated with an authenticated user.

Login process can be initiated from the "Microsoft" button in the Social Auth block. Alternatively, site builders can place (and theme) a link to user/login/microsoft wherever on the site.

Configuration

In Drupal

  1. Log in as an admin.

  2. Navigate to Configuration » User authentication » Microsoft and copy
    the Authorized redirect URL field value (the URL should end in
    /user/login/microsoft/callback).

In Azure Portal

  1. Log in to a Microsoft account.

  2. Navigate to App registrations

  3. Click Register an application.

  4. Set the app name and account type as desired.

  5. Under Redirect URI select "Web" from the platform options and paste the
    URL from Step 2 in the field.

  6. Click Register.

  7. On the app Overview page copy the Application (client) ID value and store
    it somewhere safe.

  8. Navigate to Certificates & secrets » Client secrets.

  9. Click New client secret.

  10. Set the fields as desired and click Add.

  11. Copy the secret (in the Value column, not the Secret ID column) and
    store it somewhere safe.

In Drupal:

  1. Return to Configuration » User authentication » Microsoft.

  2. Enter the Microsoft client ID in the Client ID field.

  3. Enter the Microsoft secret value in the Client secret field.

  4. Click Save configuration.

  5. Navigate to Structure » Block Layout and place a Social Auth login block
    somewhere on the site (if not already placed).

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
May 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Active

Releases

Version Type Core Release date
4.0.1 Stable 9–11 Sep 7, 2024
4.0.0 Stable May 3, 2023