ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
class.ilShibbolethAuthStrategy.php
Go to the documentation of this file.
1<?php
2
18declare(strict_types=1);
19
21{
22 public function __construct(
23 private ilCtrlInterface $ctrl,
24 private ilLogger $logger
25 ) {
26 }
27
28 public function getName(): string
29 {
30 return 'shib';
31 }
32
33 public function isActive(): bool
34 {
35 return (new ilShibbolethSettings())->isActive();
36 }
37
38 public function handleLogin(string $redirection_target): void
39 {
40 $this->logger->info('Redirect to shibboleth authentication');
41 $this->ctrl->redirectToURL('shib_login.php?target=' . $redirection_target);
42 }
43}
Component logger with individual log levels by component id.
handleLogin(string $redirection_target)
__construct(private ilCtrlInterface $ctrl, private ilLogger $logger)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...