Not working when "authentication_required" is true
vmiguellima opened this issue · 2 comments
When is set authentication_required to true on the config, it always returns forbidden. Even when the user is logged in. I've dump EnsureAuthorizedToDownload Middleware, and it can't access current user instance.
I've tried so many ways and can't get it working with authorization, only works when disabled.
I'm using Laravel 8.
Thanks,
Miguel
The it_can_download_the_personal_data_download
proves that the functionality is working as intended. Please submit a failing test for me to look at.
I just had the same issue and I my case this solved it:
// in your routes file - then if the user is not logged in, he will be prompted for user name and password
Route::middleware(['auth'])->group(function () {
Route::personalDataExports('personal-data-exports');
});