fix: [keycloak] re-enabled the getUser function, removed the placeholder forced user fetch

cli-modification-summary
iglocska 2022-11-09 14:10:54 +01:00
parent 0d2b4f107d
commit 99febe19db
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 3 deletions

View File

@ -18,11 +18,9 @@ use Cake\Http\Exception\NotFoundException;
class AuthKeycloakBehavior extends Behavior
{
/*
public function getUser(EntityInterface $profile, Session $session)
{
$userId = $session->read('Auth.User.id');
$userId = null;
if ($userId) {
return $this->_table->get($userId);
}
@ -35,7 +33,7 @@ class AuthKeycloakBehavior extends Behavior
return $user;
}
*/
private function extractProfileData($profile_payload)
{
$mapping = Configure::read('keycloak.mapping');