----- -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Controller/OpenIDConnectRedirectController.php
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
162 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
172 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
188 Call to deprecated constant USER_REGISTER_ADMINISTRATORS_ONLY: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead.
189 Call to deprecated constant USER_REGISTER_VISITORS: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_VISITORS instead.
193 Call to deprecated constant USER_REGISTER_ADMINISTRATORS_ONLY: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead.
194 Call to deprecated constant USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL instead.
200 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
208 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
211 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------ ----------------------------------------------------------------------
Line src/Form/OpenIDConnectAccountsForm.php
------ ----------------------------------------------------------------------
196 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
201 Call to deprecated function drupal_set_message():
in drupal:8.5.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\Messenger\MessengerInterface::addMessage() instead.
------ ----------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/OpenIDConnect.php
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
331 Call to deprecated constant USER_REGISTER_ADMINISTRATORS_ONLY: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead.
332 Call to deprecated constant USER_REGISTER_VISITORS: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_VISITORS instead.
337 Call to deprecated constant USER_REGISTER_ADMINISTRATORS_ONLY: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal\user\UserInterface::REGISTER_ADMINISTRATORS_ONLY instead.
342 Call to deprecated constant USER_REGISTER_VISITORS: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\user\UserInterface::REGISTER_VISITORS instead.
348 Call to deprecated constant USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use
\Drupal\user\UserInterface::REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL instead.
685 Call to deprecated function drupal_basename():
in drupal:8.0.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\File\FileSystem::basename().
690 Call to deprecated constant FILE_EXISTS_RENAME: Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use \Drupal\Core\File\FileSystemInterface::EXISTS_RENAME.
------ -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------ -----------------------------------------------------------------------------------------------------------------------------------------------
Line src/Plugin/OpenIDConnectClientBase.php
------ -----------------------------------------------------------------------------------------------------------------------------------------------
302 Call to deprecated constant REQUEST_TIME: Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal::time()->getRequestTime();
------ -----------------------------------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------------------------------------------------------------------------------
Line src/Plugin/OpenIDConnectClientInterface.php
------ -------------------------------------------------------------------------------------------------------------------------------------------------------
12 Interface Drupal\openid_connect\Plugin\OpenIDConnectClientInterface extends deprecated interface Drupal\Component\Plugin\ConfigurablePluginInterface:
Drupal\Component\Plugin\ConfigurablePluginInterface is deprecated
in Drupal 8.7.0 and will be removed before Drupal 9.0.0. You should implement
ConfigurableInterface and/or DependentPluginInterface directly as needed. If
you implement ConfigurableInterface you may choose to implement
ConfigurablePluginInterface in Drupal 8 as well for maximum compatibility,
however this must be removed prior to Drupal 9.
------ -------------------------------------------------------------------------------------------------------------------------------------------------------
------ -------------------------------------------------------------------------------------------------------------------------
Line src/Tests/OpenIDConnectSettingsFormTest.php
------ -------------------------------------------------------------------------------------------------------------------------
12 Class Drupal\openid_connect\Tests\OpenIDConnectSettingsFormTest extends deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
32 Call to method setUp() of deprecated class Drupal\simpletest\WebTestBase:
in drupal:8.8.0 and is removed from drupal:9.0.0. Instead,
use \Drupal\Tests\BrowserTestBase. See https://www.drupal.org/node/3030340.
------ -------------------------------------------------------------------------------------------------------------------------
- Simpletest has been replaced with phpunit test
- required versions in composer.json and info.yml
| Comment | File | Size | Author |
|---|---|---|---|
| #34 | 3112173-34.patch | 30.94 KB | jcnventura |
| #34 | interdiff_32_34.txt | 968 bytes | jcnventura |
Comments
Comment #3
sleitner commentedTest got lost when creating the patch, next try
Comment #4
didebruWould it be possible to Inject the messanger service instead of call it static like in patch from https://www.drupal.org/project/openid_connect/issues/2961752?
Comment #5
solideogloria commentedI made the changes following the linked issue. Please review.
Comment #6
didebruLooks good to me but why did you remove the Test?
Comment #7
solideogloria commentedI didn't knowingly remove anything. I don't see the existence of such a file in the revision history on my local clone of the repo, and my commit history doesn't show that I removed a file. Feel free to fix it with a new patch.
Comment #8
sleitner commentedComment #9
sleitner commentedMessenger service injection and a couple of drupalcheck -a and phpcs errors removed:
Comment #10
shamsher_alam commentedNot working with Open_id_AD
Error: Call to undefined method Drupal\openid_connect_windows_aad\Plugin\OpenIDConnectClient\WindowsAad::isEmpty() in Drupal\openid_connect\Controller\OpenIDConnectRedirectController->authenticate() (line 148 of /mnt/www/html/nestledsu201live/docroot/modules/contrib/openid_connect/src/Controller/OpenIDConnectRedirectController.php)
#0 [internal function]: Drupal\openid_connect\Controller\OpenIDConnectRedirectController->authenticate('windows_aad')
#1 /mnt/www/html/nestledsu201live/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#2 /mnt/www/html/nestledsu201live/docroot/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#3 /mnt/www/html/nestledsu201live/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#4 /mnt/www/html/nestledsu201live/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#5 /mnt/www/html/nestledsu201live/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#6 /mnt/www/html/nestledsu201live/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#7 /mnt/www/html/nestledsu201live/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel
Comment #11
sleitner commentedComment #12
solideogloria commentedI didn't know what this error meant:
Here's why: https://github.com/timber/timber/pull/2203#issuecomment-591332533
Comment #13
sleitner commented@solideogloria: I think this a recommendation. In core "new static(" is always used without making the class or the constructor final.
Comment #14
shamsher_alam commentedI have tried latest patch but still not working.
#0 [internal function]: Drupal\openid_connect\Controller\OpenIDConnectRedirectController->authenticate('windows_aad')
#1 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#2 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#3 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#4 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#5 /mnt/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#6 /mnt/www/html/drupal/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#7 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 /mnt/www/html/drupal/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#10 /mnt/www/html/drupal/docroot/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#11 /mnt/www/html/drupal/docroot/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#12 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#14 /mnt/www/html/drupal/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /mnt/www/html/drupal/docroot/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /mnt/www/html/drupal/docroot/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#17 {main}
Comment #15
sleitner commentedComment #16
jcnventuraWorked just fine on a Drupal 9 site now.
Comment #17
solideogloria commented#15 takes care of #3130423: Missing namespaces in openid_connect.module
Comment #18
jcnventuraActually, maybe would be better to remove that duplicate drupal/core requirement in composer.json. Less stuff to maintain and keep in sync.
Drupal.org's packagist will fill that composer.json information from the .info.yml file.
Comment #19
munish.kumar commentedComment #20
munish.kumar commentedComment #21
munish.kumar commentedIgnore the previous patch, This is the updated patch which addresses the #18 changes.
Comment #22
jcnventuraThe drupal/core requirement should be removed from composer.json.
Comment #23
mrinalini9 commentedComment #24
mrinalini9 commentedRemoved drupal/core requirement from composer.json, please review.
Comment #25
pfrillingComment #26
pfrillingThanks for the patches everyone! I made a few minor adjustments from #24, mainly updating the unit tests to reflect the changes.
Comment #27
pfrillingIgnore the patch in #26. This one should pass testing.
Comment #28
fabianderijkI've tested the patch and everything seems to work fine. If it depended on me, this issue status can be moved to RTBC.
Comment #29
tomvv commentedPatch works, RTBC
Comment #30
sanduhrsReroll against latest HEAD.
Comment #31
jcnventura@sleitner added in #9 a lot of unnecessary $client->get|post to $client->request changes that make the patch a lot bigger than it truly needs to be. Even if that were a desired change (which it isn't), it should be in it's own issue, as it clearly is not a D9 deprecation.
And people, please create interdiffs!!
Comment #32
jcnventuraLet's see if tests still pass. If they do, I'll commit this based on #28 and #29.
Comment #33
jcnventuraComment #34
jcnventuraBefore committing this, I noticed that we're changing the API of
OpenIDConnectClientBase::__construct()by adding a new parameter. This would break all other OpenIDConnectClients out there. I'm making the new parameter to the constructor optional, at the expense of breaking pure DI if that parameter is not provided.Plugins should instead follow the pattern specified here: https://www.previousnext.com.au/blog/safely-extending-drupal-8-plugin-cl...
Comment #35
fabianderijk@jcventura, I noticed this as well. Thanks for the optional parameter!
Comment #37
jcnventuraThanks everyone!