Open TomaszPekalski opened 3 years ago
We are also facing the same issue. The logout is not working as expected and even after calling logout, it is not logging out from Keycloak and thus posing an issue. @TomaszPekalski did you get any solution for it ?
I had this issue; basically, it was more of an understanding problem. I forgot to include an array in the getLogoutUrl with the access_token, and the provider's getRequest doesn't make the request; it just instantiates the GuzzleHttp\Psr7\Request.
$logoutUrl = $provider->getLogoutUrl([
'access_token' => $token,
]);
try {
$client = new \GuzzleHttp\Client();
$request = $client->send(
$provider->getRequest('GET', $logoutUrl)
);
} catch (Exception $e) {
exit($e->getMessage());
}
hey, could You help me with logout option.
when i click logoutUrl on browser i can logout - but from application not