You are here

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

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

File

src/MetadataReader.php, line 89

Class

IdentityProviders

Namespace

Drupal\miniorange_saml

Code

private function parseSSOService($xml) {
  $ssoServices = Utilities::xpQuery($xml, './saml_metadata:SingleSignOnService');
  foreach ($ssoServices as $ssoService) {
    $binding = str_replace("urn:oasis:names:tc:SAML:2.0:bindings:", "", $ssoService
      ->getAttribute('Binding'));
    $this->loginDetails = array_merge($this->loginDetails, array(
      $binding => $ssoService
        ->getAttribute('Location'),
    ));
  }
}