Constant 'AUTHENTICATION_PROVIDER_NAME' not found in Drupal\certificatelogin\Controller\CertificateLoginController

Created on 6 October 2024, 4 months ago

Problem/Motivation

The constant is not present on the controller class anymore. Seems this constant was leftover from a previous refactor. If we check the Git log now is part of a service.

cd1aeca3ebedab108b62fed055fdbe0c968b08e7
Author: Derek Laventure <sensespidey@gmail.com>
Date:   Thu Aug 6 15:39:08 2020 -0400

    Refactor authentication and registration functions into a service class.

eb2c92d3571357d38d5550ccebafe40844ded478
Author: Colan Schwartz <colan@58704.no-reply.drupal.org>
Date:   Wed Mar 20 14:47:47 2019 -0400

    Issue #2928959: Reverted previous commit as it's causing errors.
    
    Revert "Issue #2928959 by spiderman: Add support for Web-services-style logins."
    This reverts commit 726ab4b5467e55fdbcaf4b291d4807101f7ccd13.

726ab4b5467e55fdbcaf4b291d4807101f7ccd13
Author: spiderman <spiderman@1631.no-reply.drupal.org>
Date:   Tue Dec 19 10:34:20 2017 -0500

    Issue #2928959 by spiderman: Add support for Web-services-style logins.

b535132806fcf67794b65c7e1ecd4ed78450eee9
Author: Colan Schwartz <colan@58704.no-reply.drupal.org>
Date:   Thu Jul 27 23:31:50 2017 -0400

    Issue #2854922 by colan: Module now cleans up after itself on uninstallation.

83f34843ebc2cd36bed23c818848549aa848e879
Author: Colan Schwartz <colan@58704.no-reply.drupal.org>
Date:   Thu Jul 27 18:12:22 2017 -0400

    Issue #2854922 by colan: Added code to register and log in new users.

Steps to reproduce

  • Add the module to your project using the 2.x branch composer require 'drupal/certificatelogin:2.x-dev@dev'
  • Install the module as usual
  • Uninstalling the module will throw the error.

Proposed resolution

Refactor the .install, reference the constant from the service class instead of the controller.

Remaining tasks

  • Fork the issue.
  • Apply the fix.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain d70rr3s

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024