ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAuthFrontendCredentialsOpenIdConnect.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
23 private const SESSION_TARGET = 'oidc_target';
24 private const QUERY_PARAM_TARGET = 'target';
25
27 private ?string $target = null;
28
29 public function __construct()
30 {
31 global $DIC;
32
34
36 $httpquery = $DIC->http()->wrapper()->query();
37 if ($httpquery->has(self::QUERY_PARAM_TARGET)) {
38 $this->target = $httpquery->retrieve(self::QUERY_PARAM_TARGET, $DIC->refinery()->to()->string());
39 }
40 }
41
43 {
44 return $this->settings;
45 }
46
47 public function getRedirectionTarget(): ?string
48 {
49 return $this->target;
50 }
51
52 public function initFromRequest(): void
53 {
54 $this->setUsername('');
55 $this->setPassword('');
56
58 }
59
60 protected function parseRedirectionTarget(): void
61 {
62 if ($this->target) {
63 ilSession::set(self::SESSION_TARGET, $this->target);
64 } elseif (ilSession::get(self::SESSION_TARGET)) {
65 $this->target = ilSession::get(self::SESSION_TARGET);
66 }
67 }
68}
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
global $DIC
Definition: shib_login.php:26