fix: [keycloak] re-enabled the getUser function, removed the placeholder forced user fetch
parent
0d2b4f107d
commit
99febe19db
|
@ -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');
|
||||
|
|
Loading…
Reference in New Issue