ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilAuthFrontendCredentialsSaml.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
28 {
29  private string $return_to = '';
30  private array $attributes = [];
31 
32  public function __construct(private readonly ilSamlAuth $auth, private readonly ServerRequestInterface $request)
33  {
35 
36  $this->setAttributes($this->auth->getAttributes());
37  }
38 
39  public function initFromRequest(): void
40  {
41  $this->setReturnTo((string) ($this->request->getQueryParams()['target'] ?? ''));
42  }
43 
44  public function setAttributes(array $attributes): void
45  {
46  $this->attributes = $attributes;
47  }
48 
49  public function getAttributes(): array
50  {
51  return $this->attributes;
52  }
53 
54  public function getReturnTo(): string
55  {
56  return $this->return_to;
57  }
58 
59  public function setReturnTo(string $return_to): void
60  {
61  $this->return_to = $return_to;
62  }
63 }
Class ilAuthFrontendCredentialsSaml.
__construct(VocabulariesInterface $vocabularies)
__construct(private readonly ilSamlAuth $auth, private readonly ServerRequestInterface $request)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...