knightswarm / laravel-saml Goto Github PK
View Code? Open in Web Editor NEWOpen Source SAML Support for Laravel
License: MIT License
Open Source SAML Support for Laravel
License: MIT License
Your SimpleSamlPHP SP install path
'sp_path' => app_path()."/../../sp",
What exactly do I need to do here?
Do I need to separately download SimpleSAMLPHP and point to the location of its source files?
I tried following the setup as listed in the readme but found it didn't quite line up with my installation. I'm running Laravel 4.1.25. Here's what I found:
'KnightSwarm\DevTest\DevTestServiceProvider'
doesn't exist anywhere; instead, in my app/config/app.php
file, I added 'KnightSwarm\LaravelSaml\LaravelSamlServiceProvider'
as the provider.facades
array in that file, but there is an aliases
array that looks like it does the same thing. I added 'SimpleSaml' => 'KnightSwarm\LaravelSaml\Facades\SimpleSaml'
to that array.php artisan config:publish knight-swarm/laravel-saml
(single colon instead of double).app/config/packages/knight-swarm/laravel-saml/saml.php
is wrong - there's a ps_path
that should be sp_path
.Once I got everything set up (not even sure if it's right, but it looks good), I added an auth to an existing route:
Route::get('/phpinfo', 'ExampleController@phpinfo');
Route::get('/phpinfosecure', array('before' => 'auth'), 'ExampleController@phpinfo');
The non-secured one works just fine; the secured one, however, returns an error: "Class 'Saml' not found." The file that's returning the error is vendor/knight-swarm/laravel-saml/src/KnightSwarm/LaravelSaml/Account.php
, line 20: return Saml::isAuthenticated();
. I'm not familiar enough with Laravel to know if this is a problem with how I installed the package, or a namespacing problem, or what. Any help tracking this down would be greatly appreciated.
I got this error message when running composer update
with Laravel 5, not 4. A little investigation into it, would seem it's trying to load different versions of Support?
"illuminate/support": "~4.1"
..but my project is requiring Laravel 5. Is there any way around this? Does the provider not work in 5 yet?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Conclusion: don't install laravel/framework v5.0.27
- Conclusion: don't install laravel/framework v5.0.26
- Conclusion: don't install laravel/framework v5.0.25
- Conclusion: don't install laravel/framework v5.0.24
- Conclusion: remove laravel/framework v5.0.23
- Conclusion: don't install laravel/framework v5.0.23
- Conclusion: don't install laravel/framework v5.0.22
- Conclusion: don't install laravel/framework v5.0.21
...
Hi,
Thanks for writing a good package for SAML but I need to know if the package is good for Laravel 5 too?
I am getting BadMethodCalException on PHP Artisan when I run this "php artisan config:publish knight-swarm/laravel-saml"
"call to undefined method [package]"
Shouldn't this route be a post route? Isn't this route where saml will be posting to?
Route::get('login', 'SamlController@login');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.