You are here

private function IdentityProviders::parseSLOService in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

1 call to IdentityProviders::parseSLOService()
IdentityProviders::__construct in src/MetadataReader.php

File

src/MetadataReader.php, line 100

Class

IdentityProviders

Namespace

Drupal\miniorange_saml

Code

private function parseSLOService($xml) {
  $sloServices = Utilities::xpQuery($xml, './saml_metadata:SingleLogoutService');
  foreach ($sloServices as $sloService) {
    $binding = str_replace("urn:oasis:names:tc:SAML:2.0:bindings:", "", $sloService
      ->getAttribute('Binding'));
    $this->logoutDetails = array_merge($this->logoutDetails, array(
      $binding => $sloService
        ->getAttribute('Location'),
    ));
  }
}