protected function findAuthorization(UserResponseInterface $response) { $resourceOwnerName = $response->getResourceOwner()->getName(); $username = $response->getUsername(); return $this->authorizationDirector->findOneBy(['resourceOwnerName' => $resourceOwnerName, 'username' => $username]); }