laravel-saml2 icon indicating copy to clipboard operation
laravel-saml2 copied to clipboard

Target class [saml] does not exist

Open pearlbells opened this issue 2 years ago • 1 comments

Hi Can you please help me fix the above error?

I have followed the documentation and created the tenant and added the middleware checking.

When I try to access the urls I am getting the attached error.

Please advice.

Thanks

Pearl snapshot-1675337441376

pearlbells avatar Feb 02 '23 11:02 pearlbells

Just in case anyone is facing this issue... it's related to a missing entry within laravel app/Http/Kernel.php

As indicated in the documentation, it's needed to create a new entry with the following details (at least at the time of this message).

protected $middlewareGroups = [ 'web' => [ ... ], 'api' => [ ... ], 'saml' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, ],

nanodreams avatar Nov 08 '23 11:11 nanodreams