Expected application/json response, got text/html
Opened this issue · 1 comments
Deleted user commented
I had this problem, and I tried to solve it
at @/vendor/jasny/sso/src/Server.php line 311
add
die;
public function userInfo()
{
$this->startBrokerSession();
$user = null;
$username = $this->getSessionData('sso_user');
if ($username) {
$user = $this->getUserInfo($username);
if (!$user) return $this->fail("User not found", 500); // Shouldn't happen
}
header('Content-type: application/json; charset=UTF-8');
echo json_encode($user);
die;
}
Is there a better way to do it ?
jasny commented
Outputting the user information will be removed in v0.4