ILIAS  release_8 Revision v8.24
class.ilAuthFrontendCredentialsOpenIdConnect.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
25{
26 private const SESSION_TARGET = 'oidc_target';
27 private const QUERY_PARAM_TARGET = 'target';
28
30 private ?string $target = null;
31
32 public function __construct()
33 {
34 global $DIC;
35
38 $httpquery = $DIC->http()->wrapper()->query();
39 if ($httpquery->has(self::QUERY_PARAM_TARGET)) {
40 $this->target = $httpquery->retrieve(self::QUERY_PARAM_TARGET, $DIC->refinery()->to()->string());
41 }
42 }
43
45 {
46 return $this->settings;
47 }
48
49 public function getRedirectionTarget(): ?string
50 {
51 return $this->target;
52 }
53
54 public function initFromRequest(): void
55 {
56 $this->setUsername('');
57 $this->setPassword('');
58
60 }
61
62 protected function parseRedirectionTarget(): void
63 {
64 if ($this->target) {
65 ilSession::set(self::SESSION_TARGET, $this->target);
66 } elseif (ilSession::get(self::SESSION_TARGET)) {
67 $this->target = ilSession::get(self::SESSION_TARGET);
68 }
69 }
70}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setPassword(string $a_password)
Set password.
setUsername(string $a_name)
Set username.
static get(string $a_var)
static set(string $a_var, $a_val)
Set a value.
global $DIC
Definition: feed.php:28
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc