ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
AuthnRequest.php
Go to the documentation of this file.
1<?php
2
12
14{
15 private $issuer = null;
16 private $relayState = null;
17
18 public function setRelayState($relayState)
19 {
20 $this->relayState = $relayState;
21 }
22
23 public function getRelayState()
24 {
25 return $this->relayState;
26 }
27
28 public function setIssuer($issuer)
29 {
30 $this->issuer = $issuer;
31 }
32 public function getIssuer()
33 {
34 return $this->issuer;
35 }
36
37 public function createRedirect($destination, $shire)
38 {
40 $idpmetadata = $metadata->getMetaDataConfig($destination, 'shib13-idp-remote');
41
42 $desturl = $idpmetadata->getDefaultEndpoint('SingleSignOnService', array('urn:mace:shibboleth:1.0:profiles:AuthnRequest'));
43 $desturl = $desturl['Location'];
44
45 $target = $this->getRelayState();
46
47 $url = $desturl . '?' .
48 'providerId=' . urlencode($this->getIssuer()) .
49 '&shire=' . urlencode($shire) .
50 (isset($target) ? '&target=' . urlencode($target) : '');
51 return $url;
52 }
53}
$metadata['__DYNAMIC:1__']
An exception for terminatinating execution or to throw for unit testing.
createRedirect($destination, $shire)
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
$destination
$target
Definition: test.php:19
$url