public function SimplesamlphpAuthManager::externalAuthenticate in simpleSAMLphp Authentication 8.3
Forwards the user to the IdP for authentication.
1 method overrides SimplesamlphpAuthManager::externalAuthenticate()
- SimplesamlphpAuthTestManager::externalAuthenticate in tests/
simplesamlphp_auth_test/ src/ SimplesamlphpAuthTestManager.php - Forwards the user to the IdP for authentication.
File
- src/
Service/ SimplesamlphpAuthManager.php, line 122
Class
- SimplesamlphpAuthManager
- Service to interact with the SimpleSAMLPHP authentication library.
Namespace
Drupal\simplesamlphp_auth\ServiceCode
public function externalAuthenticate() {
$uri = $this->requestStack
->getCurrentRequest()
->getUri();
$instance = $this
->getSimpleSamlInstance();
if (empty($instance)) {
return FALSE;
}
$instance
->requireAuth([
'ReturnTo' => $uri,
]);
}