Skip to content
Snippets Groups Projects
Commit a8c889d2 authored by Olav Morken's avatar Olav Morken
Browse files

saml:IDP: Add saml:AllowCreate to state array.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2780 44740490-163a-0410-bde0-09ae8108e29a
parent 615a8091
No related branches found
No related tags found
No related merge requests found
...@@ -257,6 +257,7 @@ class sspmod_saml_IdP_SAML2 { ...@@ -257,6 +257,7 @@ class sspmod_saml_IdP_SAML2 {
$consumerURL = NULL; $consumerURL = NULL;
$consumerIndex = NULL; $consumerIndex = NULL;
$extensions = NULL; $extensions = NULL;
$allowCreate = TRUE;
SimpleSAML_Logger::info('SAML2.0 - IdP.SSOService: IdP initiated authentication: '. var_export($spEntityId, TRUE)); SimpleSAML_Logger::info('SAML2.0 - IdP.SSOService: IdP initiated authentication: '. var_export($spEntityId, TRUE));
...@@ -297,6 +298,12 @@ class sspmod_saml_IdP_SAML2 { ...@@ -297,6 +298,12 @@ class sspmod_saml_IdP_SAML2 {
} else { } else {
$nameIDFormat = NULL; $nameIDFormat = NULL;
} }
if (isset($nameIdPolicy['AllowCreate'])) {
$allowCreate = $nameIdPolicy['AllowCreate'];
} else {
$allowCreate = FALSE;
}
SimpleSAML_Logger::info('SAML2.0 - IdP.SSOService: Incomming Authentication request: '. var_export($spEntityId, TRUE)); SimpleSAML_Logger::info('SAML2.0 - IdP.SSOService: Incomming Authentication request: '. var_export($spEntityId, TRUE));
} }
...@@ -337,6 +344,7 @@ class sspmod_saml_IdP_SAML2 { ...@@ -337,6 +344,7 @@ class sspmod_saml_IdP_SAML2 {
'saml:ConsumerURL' => $acsEndpoint['Location'], 'saml:ConsumerURL' => $acsEndpoint['Location'],
'saml:Binding' => $acsEndpoint['Binding'], 'saml:Binding' => $acsEndpoint['Binding'],
'saml:NameIDFormat' => $nameIDFormat, 'saml:NameIDFormat' => $nameIDFormat,
'saml:AllowCreate' => $allowCreate,
'saml:Extensions' => $extensions, 'saml:Extensions' => $extensions,
); );
......
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