ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilAuthFrontendCredentialsSaml.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use Psr\Http\Message\ServerRequestInterface;
22
24{
25 private string $return_to = '';
26 private array $attributes = [];
27
28 public function __construct(private readonly ilSamlAuth $auth, private readonly ServerRequestInterface $request)
29 {
31
32 $this->setAttributes($this->auth->getAttributes());
33 }
34
35 public function initFromRequest(): void
36 {
37 $this->setReturnTo((string) ($this->request->getQueryParams()['target'] ?? ''));
38 }
39
40 public function setAttributes(array $attributes): void
41 {
42 $this->attributes = $attributes;
43 }
44
45 public function getAttributes(): array
46 {
47 return $this->attributes;
48 }
49
50 public function getReturnTo(): string
51 {
52 return $this->return_to;
53 }
54
55 public function setReturnTo(string $return_to): void
56 {
57 $this->return_to = $return_to;
58 }
59}
__construct(private readonly ilSamlAuth $auth, private readonly ServerRequestInterface $request)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc