I am facing a problem with routing and authentication.
I referred to this document:
.html
I copied simplesamlphp
inside my public
folder. I also configured the public\simplesamlphp\config\config.php
file
When I try this login URL it gives me a 404
:
public/simplesamlphp/module.php/saml/idp/sso.php
I set this route for accessing the login page:
Route::get('/saml/login1', function () {
// echo "SDf";
return Redirect::to('/public/simplesamlphp/module.php/core/authenticate.php?as=laravel');
});
Route::get('/saml/logout', function () {
return Redirect::to('/public/simplesamlphp/module.php/core/logout.php');
});
I am unable to find clear documentation for simplesamlphp and laravel, can anyone help?
I am facing a problem with routing and authentication.
I referred to this document:
https://simplesamlphp./docs/stable/simplesamlphp-idp.html
I copied simplesamlphp
inside my public
folder. I also configured the public\simplesamlphp\config\config.php
file
When I try this login URL it gives me a 404
:
public/simplesamlphp/module.php/saml/idp/sso.php
I set this route for accessing the login page:
Route::get('/saml/login1', function () {
// echo "SDf";
return Redirect::to('/public/simplesamlphp/module.php/core/authenticate.php?as=laravel');
});
Route::get('/saml/logout', function () {
return Redirect::to('/public/simplesamlphp/module.php/core/logout.php');
});
I am unable to find clear documentation for simplesamlphp and laravel, can anyone help?
Share Improve this question edited Mar 12 at 13:16 ADyson 62.2k16 gold badges79 silver badges92 bronze badges Recognized by PHP Collective asked Mar 12 at 12:46 Kaushal PatelKaushal Patel 2892 silver badges8 bronze badges 2- Why does it need to be "in Laravel" to begin with? SSP IdP runs as a standalone webapp. – grawity_u1686 Commented Mar 12 at 15:45
- @grawity_u1686 Because I already have a Laravel project for 2 years and for this I have to do SSo for already registered users. – Kaushal Patel Commented Mar 18 at 4:35
1 Answer
Reset to default 0I believe simplesamlphp is meant for native php, and there's no direct documentation for laravel integration. What you can do is to find laravel compatible saml authentication library.
I think you can use this library if you want your laravel app to act as the IDP.
https://github/codegreencreative/laravel-samlidp
If you want your laravel app to act as the SP, then this library should work.
https://github/24Slides/laravel-saml2
I personally have used laravel-saml2 for microsoft Azure AD integration, and it works well, but I haven't tried the laravel-samlidp yet.
Regards,
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744751969a4591652.html
评论列表(0条)