aacotroneo / laravel-saml2

A Laravel 5 package for Saml2 integration as a SP (service provider) based on the simple OneLogin toolkit
MIT License
567 stars 238 forks source link

Redirect unauthenticated users #182

Open BasvanH opened 5 years ago

BasvanH commented 5 years ago

Hello,

I've got authentication working when going to /saml2/login. I want to redirect unauthenticated users automatically to /saml2/login. In the readme there's a section about the unauthenticated(... function in app/Exceptions/Handler.php, but in Laravel 5.8 there's no unauthenticated(... function in that file.

Could someone give me some direction into get unauthenticated users to redirect to /saml2/login?

Thanks in advance, Bastiaan

sophie721 commented 5 years ago

Hi Bastiaan,

I found this url may be helpful. Haven't try this myself though.