fix(slo): 修复退出登录失败的问题

Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
李东云
2022-05-19 22:54:32 +08:00
parent 7e62776555
commit bc5b88f972
2 changed files with 3 additions and 1 deletions

View File

@@ -139,7 +139,8 @@ class Assertion
public function consumeLogoutResponse(LogoutResponse $response): \Psr\Http\Message\ResponseInterface
{
$relayState = $response->getRelayState();
$landing_url = config('landing_host') . $relayState;
$landing_url = config('saml.client.landing_host') . $relayState;
$login_status_cookie = new Cookie(
'is_login',
"0",

View File

@@ -49,6 +49,7 @@ class Slo
{
$idpId = config('saml.server.idp_logout_url');
$issuer = config('saml.client.entity_id');
$this->authentication->invalidByToken($this->authentication->parseTokenFromHeaders());
$relayState = $this->request->query('relayState', '');