diff --git a/core/lib/Drupal/Core/Authentication/AuthenticationManager.php b/core/lib/Drupal/Core/Authentication/AuthenticationManager.php index 4cfda90..0a04d79 100644 --- a/core/lib/Drupal/Core/Authentication/AuthenticationManager.php +++ b/core/lib/Drupal/Core/Authentication/AuthenticationManager.php @@ -110,10 +110,6 @@ public function authenticate(Request $request) { $this->triggeredProviderId = $this->defaultProviderId(); } - // Save the authenticated account and the provider that supplied it - // for later access. - $request->attributes->set('_authentication_provider', $this->triggeredProviderId); - // The global $user object is included for backward compatibility only and // should be considered deprecated. // @todo Remove this line once global $user is no longer used. diff --git a/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php index e2e7137..35a338d 100644 --- a/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php @@ -25,7 +25,6 @@ protected function alterRoutes(RouteCollection $collection) { $special_variables = array( 'system_path', '_legacy', - '_authentication_provider', '_raw_variables', RouteObjectInterface::ROUTE_OBJECT, RouteObjectInterface::ROUTE_NAME, diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php index 1c90a62..4b94055 100644 --- a/core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php +++ b/core/tests/Drupal/Tests/Core/EventSubscriber/SpecialAttributesRouteSubscriberTest.php @@ -46,7 +46,6 @@ public function providerTestOnRouteBuildingInvalidVariables() { $routes = array(); $routes[] = array(new Route('/test/{system_path}')); $routes[] = array(new Route('/test/{_legacy}')); - $routes[] = array(new Route('/test/{_authentication_provider}')); $routes[] = array(new Route('/test/{' . RouteObjectInterface::ROUTE_OBJECT . '}')); $routes[] = array(new Route('/test/{' . RouteObjectInterface::ROUTE_NAME . '}')); $routes[] = array(new Route('/test/{_content}'));