From f513f8ec99d235a3e5691d402f701682fbbcc712 Mon Sep 17 00:00:00 2001 From: iglocska Date: Tue, 17 May 2022 11:00:30 +0200 Subject: [PATCH] chg: [kc] disabled user capturing - Cerebrate is now authoritative --- src/Model/Behavior/AuthKeycloakBehavior.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Model/Behavior/AuthKeycloakBehavior.php b/src/Model/Behavior/AuthKeycloakBehavior.php index 6550dae..ae35957 100644 --- a/src/Model/Behavior/AuthKeycloakBehavior.php +++ b/src/Model/Behavior/AuthKeycloakBehavior.php @@ -66,9 +66,10 @@ class AuthKeycloakBehavior extends Behavior 'name' => $profile_payload[$fields['role_name']], ] ]; - $user['user']['individual_id'] = $this->_table->captureIndividual($user); - $user['user']['role_id'] = $this->_table->captureRole($user); + //$user['user']['individual_id'] = $this->_table->captureIndividual($user); + //$user['user']['role_id'] = $this->_table->captureRole($user); $existingUser = $this->_table->find()->where(['username' => $user['user']['username']])->first(); + /* if (empty($existingUser)) { $user['user']['password'] = Security::randomString(16); $existingUser = $this->_table->newEntity($user['user']); @@ -92,6 +93,7 @@ class AuthKeycloakBehavior extends Behavior } } } + */ return $existingUser; }