ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4require_once 'Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentials.php';
5require_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}
$_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.