Advertisement
Guest User

Untitled

a guest
Mar 11th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. <?php
  2. /**
  3. *
  4. * @ This file is created by http://DeZender.Net
  5. * @ deZender (PHP7 Decoder for ionCube Encoder)
  6. *
  7. * @ Version : 4.0.9.0
  8. * @ Author : DeZender
  9. * @ Release on : 08.08.2019
  10. * @ Official site : http://DeZender.Net
  11. *
  12. */
  13.  
  14. require_once '../../_include.php';
  15. $config = SimpleSAML\Configuration::getInstance();
  16.  
  17. if (!$config->getBoolean('enable.saml20-idp', false)) {
  18. throw new SimpleSAML\Error\Error('NOACCESS');
  19. }
  20.  
  21. $metadata = SimpleSAML\Metadata\MetaDataStorageHandler::getMetadataHandler();
  22. $idpEntityId = $metadata->getMetaDataCurrentEntityID('saml20-idp-hosted');
  23. $idpMetadata = $metadata->getMetaDataConfig($idpEntityId, 'saml20-idp-hosted');
  24.  
  25. if (!$idpMetadata->getBoolean('saml20.sendartifact', false)) {
  26. throw new SimpleSAML\Error\Error('NOACCESS');
  27. }
  28.  
  29. $store = SimpleSAML\Store::getInstance();
  30.  
  31. if ($store === false) {
  32. throw new Exception('Unable to send artifact without a datastore configured.');
  33. }
  34.  
  35. $binding = new SAML2\SOAP();
  36.  
  37. try {
  38. $request = $binding->receive();
  39. }
  40. catch (Exception $e) {
  41. if ($e->getMessage() === 'Invalid message received to AssertionConsumerService endpoint.') {
  42. throw new SimpleSAML\Error\Error('ARSPARAMS', $e, 400);
  43. }
  44. else {
  45. throw $e;
  46. ........................................................................
  47. .................................................
  48. .....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement