public function ForceLoginController::forceLogin in CAS 2.x
Same name and namespace in other branches
- 8 src/Controller/ForceLoginController.php \Drupal\cas\Controller\ForceLoginController::forceLogin()
Handles a page request for our forced login route.
1 string reference to 'ForceLoginController::forceLogin'
File
- src/
Controller/ ForceLoginController.php, line 55
Class
- ForceLoginController
- Class ForceLoginController.
Namespace
Drupal\cas\ControllerCode
public function forceLogin() {
// @todo What if CAS is not configured? Need to handle that case.
$service_url_query_params = $this->requestStack
->getCurrentRequest()->query
->all();
$cas_redirect_data = new CasRedirectData($service_url_query_params);
$cas_redirect_data
->setIsCacheable(TRUE);
return $this->casRedirector
->buildRedirectResponse($cas_redirect_data, TRUE);
}