Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target class [saml] does not exist #53

Open
pearlbells opened this issue Feb 2, 2023 · 1 comment
Open

Target class [saml] does not exist #53

pearlbells opened this issue Feb 2, 2023 · 1 comment

Comments

@pearlbells
Copy link

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

@nanodreams
Copy link

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,
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants