You are here

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

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

File

includes/MetadataReader.php, line 90

Class

IdentityProviders

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'),
    ));
  }
}