ILIAS  release_8 Revision v8.24
class.ilAuthFrontendCredentialsSaml.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use Psr\Http\Message\ServerRequestInterface;
22
28{
30 private ServerRequestInterface $request;
31 private string $return_to = '';
32 private array $attributes = [];
33
34 public function __construct(ilSamlAuth $auth, ServerRequestInterface $request)
35 {
37
38 $this->auth = $auth;
39 $this->request = $request;
40
41 $this->setAttributes($this->auth->getAttributes());
42 }
43
44 public function initFromRequest(): void
45 {
46 $this->setReturnTo((string) ($this->request->getQueryParams()['target'] ?? ''));
47 }
48
49 public function setAttributes(array $attributes): void
50 {
51 $this->attributes = $attributes;
52 }
53
54 public function getAttributes(): array
55 {
56 return $this->attributes;
57 }
58
59 public function getReturnTo(): string
60 {
61 return $this->return_to;
62 }
63
64 public function setReturnTo(string $return_to): void
65 {
66 $this->return_to = $return_to;
67 }
68}
Class ilAuthFrontendCredentialsSaml.
__construct(ilSamlAuth $auth, ServerRequestInterface $request)
Interface ilSamlAuth.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc