Merge branch 'main' into develop

pull/79/head
iglocska 2021-11-26 11:05:17 +01:00
commit c71c978761
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ class AuthKeycloakBehavior extends Behavior
$role = $this->_table->Roles->find()->where($roleConditions)->first();
$org = $this->_table->Organisations->find()->where([
['id' => $data['organisation_id']]
]);
])->first();
$token = $this->getAdminAccessToken();
$keyCloakUser = [
'firstName' => $individual['first_name'],
@ -117,7 +117,7 @@ class AuthKeycloakBehavior extends Behavior
'email' => $individual['email'],
'attributes' => [
'role_name' => empty($role['name']) ? Configure::read('keycloak.default_role_name') : $role['name'],
'org_uuid' => $orgs['uuid']
'org_uuid' => $org['uuid']
]
];
$keycloakConfig = Configure::read('keycloak');