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

No facade any more? #250

Open
DanielMalmgren opened this issue Sep 9, 2021 · 1 comment
Open

No facade any more? #250

DanielMalmgren opened this issue Sep 9, 2021 · 1 comment

Comments

@DanielMalmgren
Copy link

Hi.
I have a working SAML setup with an old version of laravel-saml2 on one site and now I'm trying to do a similar setup on another site, but things seem to have changed and I don't understand how to proceed.

Just following the readme and simply trying to instantiate a new Saml2Auth doesn't work, I just get a "Class 'App\Exceptions\Saml2Auth' not found" (and I don't really understand how I could get anything else). Copying over code from my old working setup, using "Aacotroneo\Saml2\Facades\Saml2Auth" instead doesn't work either, the facade doesn't even seem to exist in recent versions. I've literally been reading the readme and Googling for hours, nothing is helping. Anyone can see what I'm doing wrong???

@DanielMalmgren
Copy link
Author

Ha! After half a day of struggling, I found the solution (by reading into the source code), just adding a "use Aacotroneo\Saml2\Saml2Auth;" to the top made everything work. Guess this could be mentioned somewhere in the readme...

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

1 participant