Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Instancing of a new "OpenID Connect login" will fail, due to an improper typehint in OpenIDConnectLoginBlock::__construct().
Steps to reproduce
- Go to /admin/structure/block
- Try to place an "OpenID Connect login" block; it fails silently, no config form is displayed.
Proposed resolution
Update typehint in OpenIDConnectLoginBlock::__construct(), so that it matches Drupal\Core\Plugin\ContainerFactoryPluginInterface::create().
Remaining tasks
- Third party review and testing.
Issue fork openid_connect-3193374
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jedihe CreditAttribution: jedihe at Council on Foreign Relations commentedComment #4
jedihe CreditAttribution: jedihe at Council on Foreign Relations commentedComment #5
jedihe CreditAttribution: jedihe at Council on Foreign Relations commentedComment #6
jedihe CreditAttribution: jedihe at Council on Foreign Relations commentedGiven the code change is fully justifiable just to satisfy the signature of the interface, I don't think automated testing is really needed here.
Comment #8
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedThanks!