Open nspaul opened 4 years ago
Found my issue. I still had the default Laravel logout button way of processing a logout, meaning a button which submitted a form. After removing the form and using a normal anchor tag the SLS works. Perhaps you have the same issue?
I know this question has been raised before, but I've read through all of the previous issues and have not been able to understand my issue.
In short, the Saml2LogoutEvent is not firing. I do have the Saml2LoginEvent firing successfully, though, which the reason I am puzzled.
In EventServiceProvider.php, I have registered the two events by adding them to the $listen property:
Then I generated the LoginListener and LogoutListener. My LoginListener gets fired and the handle() method works perfectly to get the user logged in. The LogoutListener does not get fired.
I'm happy to post more details here, but I'm curious what everyone here thinks. These two events seem so similar to each other, from a raw configuration standpoint, so how does the login event work and the logout event not work? I'm using Laravel 6.6.2 BTW.