don't auto provision the user on a global scale setup

with global scale the authentication happens on the master node
and then the user is forward to the node they are located.
Therefore no user should be created on the master node after the
authentication at the idp was successful

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Björn Schiessle 2018-04-23 11:40:47 +02:00
parent e4988d9c7a
commit 4f852af4ce
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
1 changed files with 6 additions and 0 deletions

View File

@ -98,6 +98,12 @@ class SAMLController extends Controller {
* @throws NoUserFoundException
*/
private function autoprovisionIfPossible(array $auth) {
// nothing to do here, in case of a global scale setup
if ($this->config->getSystemValue('gs.enabled', false)) {
return;
}
$prefix = $this->SAMLSettings->getPrefix();
$uidMapping = $this->config->getAppValue('user_saml', $prefix . 'general-uid_mapping');
if(isset($auth[$uidMapping])) {