Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Disable Drupal Login

20 sites No security coverage
View on drupal.org

This module disables the default Drupal username and password login form, forcing users to authenticate through an external Single Sign-On (SSO) solution. It ensures that the login route remains accessible while preventing direct login and registration via Drupal's built-in system. This is useful when integrating with identity providers like OpenID Connect.

This simple module just disables the stock Drupal username/password login, while keeping the `user.login` route in place. We had a need for this, while using the OpenID Connect module, to rely solely on our OpenID Connect supported SSO solution for authentication.

Features

This can be used for any solution where you rely on an external authentication/SSO identity provider, but still want to maintain the `/user/login` path. This simply removes the ability for new users to register, to use the password reset route, and they will no longer see the user login form.

Post-Installation

You'll want to make sure you have your separate login method setup prior to installing this module. After that though, just install and it'll remove the form and reset link from the `/user/login` page.

Additional Requirements

None, though you'll want to set up the external authentication (OpenID Connect, Social Auth, etc.) of your choosing prior to installing this module..

OpenID Connect
Social Auth

Similar projects

I looked into other options, but they seemed to screw with the routing in some fashion; either hiding it or obfuscating it in some way. They were more about making it harder to user the Drupal login, not replacing it with an external authentication method.

Supporting this Module

Community Documentation

Activity

Total releases
1
First release
Jul 2025
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.0 Stable Jul 18, 2025