ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilAuthFrontendCredentialsSaml.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2017 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 require_once 'Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentials.php';
5 require_once 'Services/Authentication/interfaces/interface.ilAuthCredentials.php';
6 
11 {
15  protected $attributes = array();
16 
20  protected $return_to = '';
21 
25  protected $auth;
26 
31  public function __construct(ilSamlAuth $auth)
32  {
33  parent::__construct();
34 
35  $this->auth = $auth;
36 
37  $this->setAttributes($this->auth->getAttributes());
38  }
39 
43  public function initFromRequest()
44  {
45  $this->setReturnTo(isset($_GET['target']) ? $_GET['target'] : '');
46  }
47 
51  public function setAttributes(array $attributes)
52  {
53  $this->attributes = $attributes;
54  }
55 
59  public function getAttributes()
60  {
61  return $this->attributes;
62  }
63 
67  public function getReturnTo()
68  {
69  return $this->return_to;
70  }
71 
75  public function setReturnTo($return_to)
76  {
77  $this->return_to = $return_to;
78  }
79 }
Interface of auth credentials.
$_GET["client_id"]
initFromRequest()
Init credentials from request.
__construct(ilSamlAuth $auth)
ilAuthFrontendCredentialsSaml constructor.
Class ilAuthFrontendCredentialsSaml.
Interface ilSamlAuth.