Experimental support added for Extended IdP Metadata Discovery Protocol by Andreas 2008-08-28 More information: http://rnd.feide.no/content/extended-identity-provider-discovery-service-protocol
Author: Olav Morken, UNINETT AS.
<?php

/**
 * WARNING:
 *
 * THIS FILE IS DEPRECATED AND WILL BE REMOVED IN FUTURE VERSIONS
 *
 * @deprecated
 */
require_once '../../_include.php';
SimpleSAML_Logger::warning('The file shib13/sp/idpdisco.php is deprecated and will be removed in future versions.');
try {
    $discoHandler = new SimpleSAML_XHTML_IdPDisco(array('shib13-idp-remote'), 'shib13');
} catch (Exception $exception) {
    /* An error here should be caused by invalid query parameters. */
    throw new SimpleSAML_Error_Error('DISCOPARAMS', $exception);
}
try {
    $discoHandler->handleRequest();
} catch (Exception $exception) {
    /* An error here should be caused by metadata. */
    throw new SimpleSAML_Error_Error('METADATA', $exception);
}
Beispiel #2
0
 /**
  * Retrieve the previous IdP the user used.
  *
  * This function overrides the corresponding function in the parent class,
  * to add support for common domain cookie.
  *
  * @return string|NULL  The entity id of the previous IdP the user used, or NULL if this is the first time.
  */
 protected function getPreviousIdP()
 {
     if ($this->cdcDomain === NULL) {
         return parent::getPreviousIdP();
     }
     $prevIdPs = $this->getCDC();
     while (count($prevIdPs) > 0) {
         $idp = array_pop($prevIdPs);
         $idp = $this->validateIdP($idp);
         if ($idp !== NULL) {
             return $idp;
         }
     }
     return NULL;
 }
Beispiel #3
0
 /**
  * Initializes this discovery service.
  *
  * The constructor does the parsing of the request. If this is an invalid request, it will
  * throw an exception.
  *
  * @param array $metadataSets  Array with metadata sets we find remote entities in.
  * @param string $instance  The name of this instance of the discovery service.
  */
 public function __construct(array $metadataSets, $instance)
 {
     parent::__construct($metadataSets, $instance);
     $this->discoconfig = SimpleSAML_Configuration::getConfig('module_discopower.php');
 }