ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
SSOService.php
Go to the documentation of this file.
1
<?
php
11
require_once(
'../../_include.php'
);
12
13
SimpleSAML\Logger::info
(
'SAML2.0 - IdP.SSOService: Accessing SAML 2.0 IdP endpoint SSOService'
);
14
15
$metadata
=
SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler
();
16
$idpEntityId
=
$metadata
->getMetaDataCurrentEntityID(
'saml20-idp-hosted'
);
17
$idp
=
SimpleSAML_IdP::getById
(
'saml2:'
.
$idpEntityId
);
18
try
{
19
sspmod_saml_IdP_SAML2::receiveAuthnRequest
(
$idp
);
20
}
catch
(
Exception
$e) {
21
if
($e->getMessage() ===
"Unable to find the current binding."
) {
22
throw
new
SimpleSAML_Error_Error
(
'SSOPARAMS'
, $e, 400);
23
}
else
{
24
throw
$e;
// do not ignore other exceptions!
25
}
26
}
27
assert(
false
);
SimpleSAML_Metadata_MetaDataStorageHandler\getMetadataHandler
static getMetadataHandler()
This function retrieves the current instance of the metadata handler.
Definition:
MetaDataStorageHandler.php:40
$idpEntityId
$idpEntityId
Definition:
SSOService.php:16
SimpleSAML_IdP\getById
static getById($id)
Retrieve an IdP by ID.
Definition:
IdP.php:124
sspmod_saml_IdP_SAML2\receiveAuthnRequest
static receiveAuthnRequest(SimpleSAML_IdP $idp)
Receive an authentication request.
Definition:
SAML2.php:248
SimpleSAML\Logger\info
static info($string)
Definition:
Logger.php:199
$metadata
$metadata
Definition:
SSOService.php:15
SimpleSAML_Error_Error
Definition:
Error.php:10
php
$idp
$idp
Definition:
SSOService.php:17
Exception
libs
composer
vendor
simplesamlphp
simplesamlphp
www
saml2
idp
SSOService.php
Generated on Thu Jan 16 2025 19:01:56 for ILIAS by
1.8.13 (using
Doxyfile
)