Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.6.17 Update released for Drupal core (10.6.17)! Release: Drupal 11.3.17 Update released for Drupal core (11.3.17)! Release: Drupal 11.4.7 Update released for Drupal core (11.4.7)! Release: Linkit 7.0.17 Minor update available for module linkit (7.0.17). Release: Geocoder 8.x-4.36 Minor update available for module geocoder (8.x-4.36). Release: Entity Usage Plus 1.1.1 Minor update available for module entity_usage_plus (1.1.1). Release: Entity Reference Field Override 1.0.8 Minor update available for module erfo (1.0.8). Release: Field Sample Value 1.1.0 Minor update available for module field_sample_value (1.1.0). Usage Milestone: Schemata Module schemata crossed 1,000 active installs. Module Revived: Backlinks Index 1.1.5 Module backlinks_index updated after 7 months of inactivity (1.1.5).

DocID

No security coverage Drupal 10–11
View on drupal.org

This module connects your Drupal website to DocID® for user authentication, allowing visitors to sign in with their existing DocID® accounts. It automatically creates or links Drupal user accounts and assigns roles based on verified identity information, enabling content access control for specific verified groups.

DocID® connects Drupal websites with DocID® authentication. Visitors can sign in with their existing account, while Drupal creates or links a native user account and assigns roles based on verified identity information.

For site administrators, this means that Drupal roles and permissions can be used to control access to content for verified users, professions, disciplines, institutions, or other configured groups. The module works with Drupal's existing users, roles, nodes, permissions, sessions, and media rather than introducing a separate account system.

Features

  • Sign in using DocID® through OAuth 2.0.
  • Automatically create or connect native Drupal user accounts.
  • Map verified identity information to Drupal roles.
  • Configure role mappings for professions, disciplines, institutions, subjects, or all authenticated DocID® users.
  • Synchronize managed roles when a user signs in without replacing unrelated roles assigned by Drupal administrators.
  • Restrict nodes to all authenticated DocID® users or selected Drupal roles.
  • Protect files belonging to private Drupal media entities.
  • Send users to different pages after authentication based on their profession or discipline.
  • Provide configurable sign-in and account blocks.
  • Provide a dedicated /docid/login sign-in route.
  • Optionally display conditional content using supported text-filter shortcodes.
  • Use Drupal's native permissions, access APIs, sessions, and cache contexts.

The module is useful for websites that provide targeted or protected information to verified healthcare professionals while continuing to use Drupal's standard user and access-management system.

Post-Installation

After installing and enabling the module:

  1. Go to Configuration > People > DocID®.
  2. Copy the callback URL shown on the settings page.
  3. Add this callback URL as an allowed redirect URI for your website asset in the DocID® business dashboard.
  4. Enter the client ID and client secret issued for the website asset.
  5. Configure the Drupal roles that should be assigned for matching professions, disciplines, institutions, or subjects.
  6. Review Drupal's permissions page and grant the required permissions to the mapped roles.
  7. Place the provided sign-in block, or link visitors directly to /docid/login.
  8. Optionally configure post-login destinations and protect individual nodes or private media.
  9. Test the complete sign-in and sign-out process with a non-administrator account.

The module does not create a new content type. It adds authentication and access settings to Drupal's existing user, role, content, and media systems.

For production websites, HTTPS should be enabled. The client secret should be stored securely and may be supplied through the site's environment-specific Drupal configuration.

Additional Requirements

  • Drupal 10.3 or later, or Drupal 11.
  • PHP 8.1 or later.
  • A DocID® account with a configured website asset.
  • OAuth client credentials issued for that website asset.
  • Network access from the Drupal website to the public DocID® authentication and reference-data services.
  • The Drupal core File, Filter, Node, Options, and User modules.

No additional third-party PHP library or contributed Drupal module is required.

  • Drupal core Media: Recommended when access-controlled private media and files are required.
  • Drush: Optional, but useful for installing the module, rebuilding caches, and managing Drupal from the command line.

Supporting this Module

You can support development by:

  • Reporting reproducible bugs in the Drupal.org issue queue.
  • Suggesting improvements and new use cases.
  • Testing development releases with supported Drupal versions.
  • Reviewing documentation and contributing merge requests.

For implementation or commercial support, contact [email protected].

Community Documentation

Please use the Drupal.org issue queue for module-specific questions, bug reports, compatibility reports, and feature requests.

Depends on

Dependencies of the latest stable release

  • file Drupal core
  • filter Drupal core
  • node Drupal core
  • options Drupal core
  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Aug 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Aug 3, 2026