Skip to content
Snippets Groups Projects
Commit d191910b authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

fixed wrong variable name for entityid

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1480 44740490-163a-0410-bde0-09ae8108e29a
parent 5d2b18df
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source {
if (array_key_exists('entityId', $config)) {
$this->entityId = $config['entityId'];
} else {
$this->entityId = SimpleSAML_Module::getModuleURL('saml2/sp/metadata.php?source=' .
urlencode($this->authId));
$this->entityId = SimpleSAML_Module::getModuleURL('saml2/sp/metadata.php?source=' . urlencode($this->authId));
}
if (array_key_exists('idp', $config)) {
......@@ -135,7 +134,7 @@ class sspmod_saml2_Auth_Source_SP extends SimpleSAML_Auth_Source {
public function getNameIDFormat() {
$metadata = SimpleSAML_Metadata_MetaDataStorageHandler::getMetadataHandler();
$spmeta = $metadata->getMetadata($this->entityID, 'saml20-sp-hosted');
$spmeta = $metadata->getMetadata($this->getEntityId(), 'saml20-sp-hosted');
if (array_key_exists('NameIDFormat', $spmeta)) {
return $spmeta['NameIDFormat'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment