Fixed error response on logout
Change-Id: I581c96c09de9d79336356490ae8bf45eb87660bb Signed-off-by: smarcet <smarcet@gmail.com>
This commit is contained in:
parent
e3b8987704
commit
3eb7ff5822
|
@ -13,6 +13,7 @@
|
|||
**/
|
||||
use App\Http\Utils\UserIPHelperProvider;
|
||||
use Exception;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use jwa\JSONWebSignatureAndEncryptionAlgorithms;
|
||||
use jwk\impl\JWKSet;
|
||||
use jwk\impl\RSAJWKFactory;
|
||||
|
@ -1463,8 +1464,7 @@ final class OAuth2Protocol implements IOAuth2Protocol
|
|||
$logged_user = $this->auth_service->getCurrentUser();
|
||||
|
||||
if(!is_null($logged_user) && !is_null($user) && $logged_user->getId() !== $user->getId()) {
|
||||
$this->log_service->debug_msg("OAuth2Protocol::endSession user does not match with current session!");
|
||||
throw new InvalidOAuth2Request('user does not match with current session!');
|
||||
Log::warning(sprintf("OAuth2Protocol::endSession user does not match with current session! logged user id %s - user id %s", $logged_user->getId(), $user->getId()));
|
||||
}
|
||||
|
||||
if(!is_null($logged_user))
|
||||
|
|
Loading…
Reference in New Issue