diff --git a/core/lib/Drupal/Core/Routing/Enhancer/AuthenticationEnhancer.php b/core/lib/Drupal/Core/Routing/Enhancer/AuthenticationEnhancer.php index 79202c6..6327696 100644 --- a/core/lib/Drupal/Core/Routing/Enhancer/AuthenticationEnhancer.php +++ b/core/lib/Drupal/Core/Routing/Enhancer/AuthenticationEnhancer.php @@ -69,6 +69,8 @@ public function enhance(array $defaults, Request $request) { // Authenticate the user if the request currently being routed is the // incomming master request. if ($request === $this->requestStack->getMasterRequest()) { + // Apply the defaults to current request for authentication providers. + $request->attributes->add($defaults); $this->accountProxy->setAccount($this->authenticationProvider->authenticate($request)); }