Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.0.9.0
- * @ Author : DeZender
- * @ Release on : 08.08.2019
- * @ Official site : http://DeZender.Net
- *
- */
- require_once '../../_include.php';
- $config = SimpleSAML\Configuration::getInstance();
- if (!$config->getBoolean('enable.saml20-idp', false)) {
- throw new SimpleSAML\Error\Error('NOACCESS');
- }
- $metadata = SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler();
- $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
- $idpMetadata = $metadata->getMetaDataConfig($idpEntityId, 'saml20-idp-hosted');
- if (!$idpMetadata->getBoolean('saml20.sendartifact', false)) {
- throw new SimpleSAML\Error\Error('NOACCESS');
- }
- $store = SimpleSAML\Store::getInstance();
- if ($store === false) {
- throw new Exception('Unable to send artifact without a datastore configured.');
- }
- $binding = new SAML2\SOAP();
- try {
- $request = $binding->receive();
- }
- catch (Exception $e) {
- if ($e->getMessage() === 'Invalid message received to AssertionConsumerService endpoint.') {
- throw new SimpleSAML\Error\Error('ARSPARAMS', $e, 400);
- }
- else {
- throw $e;
- ........................................................................
- .................................................
- .....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement