ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
AuthnRequest.php
Go to the documentation of this file.
1
<?
php
2
11
namespace
SimpleSAML\XML\Shib13
;
12
13
class
AuthnRequest
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
{
39
$metadata
=
\SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler
();
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
}
SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
Definition:
MetaDataStorageHandler.php:40
SimpleSAML\XML\Shib13\AuthnRequest\setRelayState
setRelayState($relayState)
Definition:
AuthnRequest.php:18
SimpleSAML\XML\Shib13\AuthnRequest\getIssuer
getIssuer()
Definition:
AuthnRequest.php:32
$destination
$destination
Definition:
saml2-logout.php:50
$metadata
$metadata['__DYNAMIC:1__']
Definition:
adfs-idp-hosted.php:3
SimpleSAML\XML\Shib13
Definition:
AuthnRequest.php:11
SimpleSAML\XML\Shib13\AuthnRequest\$issuer
$issuer
Definition:
AuthnRequest.php:15
php
$url
$url
Definition:
proxy_ylocal.php:28
SimpleSAML\XML\Shib13\AuthnRequest\setIssuer
setIssuer($issuer)
Definition:
AuthnRequest.php:28
SimpleSAML\XML\Shib13\AuthnRequest
Definition:
AuthnRequest.php:13
$target
$target
Definition:
test.php:19
SimpleSAML\XML\Shib13\AuthnRequest\getRelayState
getRelayState()
Definition:
AuthnRequest.php:23
SimpleSAML\XML\Shib13\AuthnRequest\$relayState
$relayState
Definition:
AuthnRequest.php:16
SimpleSAML\XML\Shib13\AuthnRequest\createRedirect
createRedirect($destination, $shire)
Definition:
AuthnRequest.php:37
libs
composer
vendor
simplesamlphp
simplesamlphp
lib
SimpleSAML
XML
Shib13
AuthnRequest.php
Generated on Thu Jan 16 2025 19:01:54 for ILIAS by
1.8.13 (using
Doxyfile
)