ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilAuthFrontendCredentialsSaml.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3
8{
10 protected $attributes = [];
12 protected $return_to = '';
14 protected $auth;
15
20 public function __construct(ilSamlAuth $auth)
21 {
23
24 $this->auth = $auth;
25
26 $this->setAttributes($this->auth->getAttributes());
27 }
28
32 public function initFromRequest() : void
33 {
34 $this->setReturnTo(isset($_GET['target']) ? $_GET['target'] : '');
35 }
36
40 public function setAttributes(array $attributes) : void
41 {
42 $this->attributes = $attributes;
43 }
44
48 public function getAttributes() : array
49 {
50 return $this->attributes;
51 }
52
56 public function getReturnTo() : string
57 {
58 return $this->return_to;
59 }
60
64 public function setReturnTo(string $return_to) : void
65 {
66 $this->return_to = $return_to;
67 }
68}
$_GET["client_id"]
An exception for terminatinating execution or to throw for unit testing.
Class ilAuthFrontendCredentialsSaml.
__construct(ilSamlAuth $auth)
ilAuthFrontendCredentialsSaml constructor.
initFromRequest()
Init credentials from request.
Interface of auth credentials.
Interface ilSamlAuth.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc