Example #1
0
 /**
  * Build a logout response based on information in the metadata.
  *
  * @param SimpleSAML_Configuration $srcMetadata  The metadata of the sender.
  * @param SimpleSAML_Configuration $dstpMetadata  The metadata of the recipient.
  */
 public static function buildLogoutResponse(SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata)
 {
     $dst = $dstMetadata->getDefaultEndpoint('SingleLogoutService', array(SAML2_Const::BINDING_HTTP_REDIRECT));
     if (isset($dst['ResponseLocation'])) {
         $dst = $dst['ResponseLocation'];
     } else {
         $dst = $dst['Location'];
     }
     $lr = new SAML2_LogoutResponse();
     $lr->setIssuer($srcMetadata->getString('entityid'));
     $lr->setDestination($dst);
     self::addRedirectSign($srcMetadata, $dstMetadata, $lr);
     return $lr;
 }
Example #2
0
 /**
  * Build a logout response based on information in the metadata.
  *
  * @param SimpleSAML_Configuration $srcMetadata  The metadata of the sender.
  * @param SimpleSAML_Configuration $dstpMetadata  The metadata of the recipient.
  */
 public static function buildLogoutResponse(SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata)
 {
     $lr = new SAML2_LogoutResponse();
     $lr->setIssuer($srcMetadata->getString('entityid'));
     self::addRedirectSign($srcMetadata, $dstMetadata, $lr);
     return $lr;
 }
Example #3
0
 /**
  * Build a logout response based on information in the metadata.
  *
  * @param SimpleSAML_Configuration $srcMetadata  The metadata of the sender.
  * @param SimpleSAML_Configuration $dstpMetadata  The metadata of the recipient.
  */
 public static function buildLogoutResponse(SimpleSAML_Configuration $srcMetadata, SimpleSAML_Configuration $dstMetadata)
 {
     $lr = new SAML2_LogoutResponse();
     $lr->setIssuer($srcMetadata->getString('entityid'));
     $dst = $dstMetadata->getString('SingleLogoutServiceResponse', NULL);
     if ($dst === NULL) {
         $dst = $dstMetadata->getString('SingleLogoutService');
     }
     $lr->setDestination($dst);
     self::addRedirectSign($srcMetadata, $dstMetadata, $lr);
     return $lr;
 }