protected AuthenticationManager::getProvider(Request $request)
Returns the id of the authentication provider for a request.
Parameters
\Symfony\Component\HttpFoundation\Request $request: The incoming request.
Return value
string|null The id of the first authentication provider which applies to the request. If no application detects appropriate credentials, then NULL is returned.
File
- core/lib/Drupal/Core/Authentication/AuthenticationManager.php, line 101
Class
- AuthenticationManager
- Manager for authentication.
Namespace
Drupal\Core\Authentication
Code
1 2 3 4 5 6 7 | protected function getProvider(Request $request ) { foreach ( $this ->authCollector->getSortedProviders() as $provider_id => $provider ) { if ( $provider ->applies( $request )) { return $provider_id ; } } } |
Please login to continue.